lib/replace:wscript - attempt to fix the features detection on Tru64
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 11 Sep 2010 06:22:09 +0000 (08:22 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 11 Sep 2010 07:16:22 +0000 (09:16 +0200)
Hopefully now we detect the built-in "socklen_t"

https://bugs.internet2.edu/jira/browse/SSPCPP-114
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN5/0001____.HTM

lib/replace/wscript

index 35e376a05d6058587cd05ff38513a4aba0323881..62075145a53f03284c4c3db15af3c7b59707238b 100644 (file)
@@ -29,9 +29,9 @@ def configure(conf):
 
     conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
 
-    # on Tru64 certain features are only available with _OSF_SOURCE
+    # on Tru64 certain features are only available with _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')
     conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h')