summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-05-11 15:23:54 +0200
committerBjörn Jacke <bj@sernet.de>2010-05-11 15:25:54 +0200
commiteff3a41bb8206d183d8228592341dcb70b26eabf (patch)
tree3f4c7a72e2e0aca1c7c4ddbdb54e80e31898f072 /lib/replace
parent82bedb5cb43da126f49352c8e70a54961143258d (diff)
downloadsamba-eff3a41bb8206d183d8228592341dcb70b26eabf.tar.gz
samba-eff3a41bb8206d183d8228592341dcb70b26eabf.tar.bz2
samba-eff3a41bb8206d183d8228592341dcb70b26eabf.zip
waf:libreplace: set _OSF_SOURCE to fix build on Tru64
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index cfb4181066..4bafcadbd4 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -29,6 +29,10 @@ def configure(conf):
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
+ # on Tru64 certain features are only available with _OSF_SOURCE
+ if conf.env['SYSTEM_UNAME_SYSNAME'] == 'OSF1':
+ conf.DEFINE('_OSF_SOURCE', 1, 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')
conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h')