Author: chromatic
Date: Thu Oct  6 09:50:29 2005
New Revision: 9373

Modified:
   trunk/config/init/hints/linux.pl
Log:
Defined _X_OPEN_SOURCE=600 in ccflags to fix implicit POSIX function
        declaration warnings when compiling src/platform.c.


Modified: trunk/config/init/hints/linux.pl
==============================================================================
--- trunk/config/init/hints/linux.pl    (original)
+++ trunk/config/init/hints/linux.pl    Thu Oct  6 09:50:29 2005
@@ -24,12 +24,17 @@ else {
     $linkflags .= ' -Wl,-E';  # --export-dynamic, s. info gcc, ld
 }
 
+if ( $cflags !~ /-D_XOPEN_SOURCE=/ ) {
+    # Request visibility of all POSIX symbols
+    $cflags .= ' -D_XOPEN_SOURCE=600';
+}
+
 Configure::Data->set(
-    ccflags => $cflags,
-    libs => $libs,
+    ccflags        => $cflags,
+    libs           => $libs,
     ld_share_flags => $ld_share_flags,
     ld_load_flags  => $ld_share_flags,
-    i_lib_pthread  => 1,               # XXX fake a header entry
+    i_lib_pthread  => 1,               # XXX fake a header entry
     linkflags      => $linkflags,
     link           => $link,
 );

Reply via email to