[libav-devel] [PATCH 1/2] Solaris: add _XOPEN_SOURCE=600 to preprocessor flags.

Sean McGovern gseanmcg at gmail.com
Wed May 9 08:13:15 CEST 2012


This is needed to expose some networking APIs.
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 67cba5a..7c35259 100755
--- 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
-- 
1.7.6



More information about the libav-devel mailing list