diff options
author | Björn Jacke <bj@sernet.de> | 2012-07-26 18:27:40 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2012-07-26 18:27:40 +0200 |
commit | 4f0b8f30c981249012c958768e58857d5b4c27f5 (patch) | |
tree | c670c96140104824a47bb213db01ca8e7d5944ad /lib/replace/wscript | |
parent | 4b914a223da0490495c1f2988172583469565eb2 (diff) | |
download | samba-4f0b8f30c981249012c958768e58857d5b4c27f5.tar.gz samba-4f0b8f30c981249012c958768e58857d5b4c27f5.tar.bz2 samba-4f0b8f30c981249012c958768e58857d5b4c27f5.zip |
s3/aio_fork: fix build on irix
IRIX needs _XOPEN_SOURCE defined for SCM_RIGHTS to be available
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 157296b298..e178cca9cd 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -38,6 +38,10 @@ def configure(conf): conf.DEFINE('_OSF_SOURCE', 1, add_to_cflags=True) conf.DEFINE('_XOPEN_SOURCE', 600, add_to_cflags=True) + # SCM_RIGHTS is only avail if _XOPEN_SOURCE iѕ defined on IRIX + if conf.env['SYSTEM_UNAME_SYSNAME'] == 'IRIX': + conf.DEFINE('_XOPEN_SOURCE', 600, add_to_cflags=True) + conf.CHECK_HEADERS('linux/types.h 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') |