Skip to content

Commit

Permalink
Fixes build on Linux using Sun Studio compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
  • Loading branch information
Mikko Koppanen authored and sustrik committed Oct 15, 2010
1 parent e33e4d7 commit e288f7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configure.in
Expand Up @@ -88,8 +88,10 @@ CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE $CPPFLAGS"
# OS-specific tests
case "${host_os}" in
*linux*)
# Define on Linux to enable all library features
CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
# Define on Linux to enable all library features. Define if using a gnu compiler
if test "x$gnu_compilers" = "xyes"; then
CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
fi
AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS])
AC_CHECK_LIB(rt, main)
AC_CHECK_LIB(uuid, main, ,
Expand Down

0 comments on commit e288f7a

Please sign in to comment.