From: Andre Noll Date: Fri, 23 Nov 2007 17:17:19 +0000 (+0100) Subject: Define XOPEN_SOURCE and __EXTENSIONS__ on Solaris. X-Git-Tag: v0.3.0~103^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=eca9a02137e172d28f8ed2ab2272a4c8bff2953d;p=paraslash.git Define XOPEN_SOURCE and __EXTENSIONS__ on Solaris. These are needed for passing fd through a socket. --- diff --git a/Makefile.in b/Makefile.in index 5c76ff0e..c5d5027a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -49,6 +49,7 @@ CPPFLAGS += -fdata-sections -ffunction-sections CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F) CPPFLAGS += @SSL_CPPFLAGS@ CPPFLAGS += @ncurses_cppflags@ +CPPFLAGS += @arch_cppflags@ BINARIES = para_server para_client para_audioc para_recv \ para_filter para_write para_fsck @extra_binaries@ diff --git a/configure.ac b/configure.ac index d06983c3..2343053e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,12 @@ AC_MSG_CHECKING(os type) OSTYPE="`$UNAMEPATH -s`" AC_MSG_RESULT("$OSTYPE") +if test "$OSTYPE" = "SunOS"; then + # needed on SunOS for socket magic + arch_cppflags="-D_XOPEN_SOURCE=500 -D__EXTENSIONS__" + AC_SUBST(arch_cppflags) +fi + AC_C_BIGENDIAN() AC_PROG_CC