diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-05-14 13:58:37 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-05-14 14:28:36 +0200 |
commit | bd6d76d77621c1dc92262c48204b65455a214b62 (patch) | |
tree | e42ed910955245501600eb195f8cc5e4c4f432e2 /lib/util | |
parent | 348b4b9bab0cd0f87860441218658802e8aba410 (diff) | |
download | samba-bd6d76d77621c1dc92262c48204b65455a214b62.tar.gz samba-bd6d76d77621c1dc92262c48204b65455a214b62.tar.bz2 samba-bd6d76d77621c1dc92262c48204b65455a214b62.zip |
lib/util: fix waf configure tests for xattr functions on Mac OS 10.
metze
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/wscript_configure | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure index ae3a4f2e05..fea8ddf7ce 100644 --- a/lib/util/wscript_configure +++ b/lib/util/wscript_configure @@ -6,18 +6,20 @@ conf.CHECK_FUNCS_IN('backtrace', 'execinfo', checklibc=True, headers='execinfo.h conf.CHECK_FUNCS('sigprocmask sigblock sigaction') -conf.CHECK_FUNCS_IN('flistxattr', 'attr', checklibc=True, headers='sys/attributes.h attr/xattr.h sys/xattr.h') - -conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE', headers='sys/statvfs.h') +xattr_headers='sys/attributes.h attr/xattr.h sys/xattr.h' +conf.CHECK_FUNCS_IN('flistxattr', 'attr', checklibc=True, headers=xattr_headers) conf.CHECK_CODE('getxattr(NULL, NULL, NULL, 0, 0, 0)', - define='XATTR_ADDITIONAL_OPTIONS') + headers=xattr_headers, local_include=False, + define='XATTR_ADDITIONAL_OPTIONS', + msg='Checking for darwin xattr api') if conf.CONFIG_SET('HAVE_FLISTXATTR'): conf.DEFINE('HAVE_XATTR_SUPPORT', 1) +conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE', headers='sys/statvfs.h') # all the different ways of doing statfs statfs_types = [ |