lib/replace:wscript - additional attempt to fix the build on Tru64
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 11 Sep 2010 10:15:20 +0000 (12:15 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 11 Sep 2010 10:18:33 +0000 (12:18 +0200)
Obviously we really need both definitions ("socklen_t" has been found by
"_XOPEN_SOURCE"=500). But now FIONREAD wasn't accessible.

lib/replace/wscript

index 331f1e81b2ec209dff2e8b3feaaa1485f54b83eb..e626eeb22a556c829df4b011311dcf07a92bbdc9 100644 (file)
@@ -29,8 +29,10 @@ def configure(conf):
 
     conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
 
-    # on Tru64 certain features are only available with _XOPEN_SOURCE set to 500
+    # on Tru64 certain features are only available with _OSF_SOURCE set to 1
+    # and _XOPEN_SOURCE set to 500
     if conf.env['SYSTEM_UNAME_SYSNAME'] == 'OSF1':
+        conf.DEFINE('_OSF_SOURCE', 1, add_to_cflags=True)
         conf.DEFINE('_XOPEN_SOURCE', 500, add_to_cflags=True)
 
     conf.CHECK_HEADERS('crypt.h locale.h acl/libacl.h compat.h')