]> git.tue.mpg.de Git - paraslash.git/commitdiff
Define XOPEN_SOURCE and __EXTENSIONS__ on Solaris.
authorAndre Noll <maan@systemlinux.org>
Fri, 23 Nov 2007 17:17:19 +0000 (18:17 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 23 Nov 2007 17:17:19 +0000 (18:17 +0100)
These are needed for passing fd through a socket.

Makefile.in
configure.ac

index 5c76ff0e5b7425a0011d9370da6db121e9ff91f9..c5d5027a09858b256660b18fb67bb26efe34d5c4 100644 (file)
@@ -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@
index d06983c343bc8c0ebbff7f7258634d0cab007b51..2343053eba770383da02b2fb28bf3c198d25e795 100644 (file)
@@ -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