1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3/aio_fork: fix build on irix

IRIX needs _XOPEN_SOURCE defined for SCM_RIGHTS to be available
This commit is contained in:
Björn Jacke 2012-07-26 18:27:40 +02:00
parent 4b914a223d
commit 4f0b8f30c9
2 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,7 @@ AC_SYS_LARGEFILE
dnl Add #include for broken IRIX header files
case "$host_os" in
*irix6*) AC_ADD_INCLUDE(<standards.h>)
AC_N_DEFINE(_XOPEN_SOURCE,600)
;;
*hpux*)
# mmap on HPUX is completely broken...

View File

@ -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')