configure: Add _XOPEN_SOURCE=600 to Solaris preprocessor flags.
authorSean McGovern <gseanmcg@gmail.com>
Wed, 9 May 2012 06:13:15 +0000 (02:13 -0400)
committerDiego Biurrun <diego@biurrun.de>
Wed, 9 May 2012 22:01:44 +0000 (00:01 +0200)
This is needed to expose some networking APIs.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
configure

index 4b1e551..79b948e 100755 (executable)
--- a/configure
+++ b/configure
@@ -2452,7 +2452,7 @@ case $target_os in
         SHFLAGS='-shared -Wl,-h,$$(@F)'
         enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
         network_extralibs="-lsocket -lnsl"
-        add_cppflags -D__EXTENSIONS__
+        add_cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
         # When using suncc to build, the Solaris linker will mark
         # an executable with each instruction set encountered by
         # the Solaris assembler.  As our libraries contain their own