Define XOPEN_SOURCE and __EXTENSIONS__ on Solaris.
[paraslash.git] / configure.ac
index d06983c..2343053 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