summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-11 12:15:20 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-11 12:18:33 +0200
commit2442d256368daa11b55ca61578a73620653736df (patch)
tree2ea2dc85797a3f6fc01a0dd7f7ad7ba1c20dbc7c /lib/replace
parenta02a2c3557928e507d1220303d9a3f79e8c46bb1 (diff)
downloadsamba-2442d256368daa11b55ca61578a73620653736df.tar.gz
samba-2442d256368daa11b55ca61578a73620653736df.tar.bz2
samba-2442d256368daa11b55ca61578a73620653736df.zip
lib/replace:wscript - additional attempt to fix the build on Tru64
Obviously we really need both definitions ("socklen_t" has been found by "_XOPEN_SOURCE"=500). But now FIONREAD wasn't accessible.
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 331f1e81b2..e626eeb22a 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -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')