summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-06-01 13:41:46 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-06-02 02:13:49 +0200
commitf9b7cd53b9fe253b122cb545c2dd1be073ab0592 (patch)
treeffd0205757c031bce2d6d42b1cf6f173f829440a /lib/replace/wscript
parentc290cdb9349220ba70b54143e1432da0230e2cee (diff)
downloadsamba-f9b7cd53b9fe253b122cb545c2dd1be073ab0592.tar.gz
samba-f9b7cd53b9fe253b122cb545c2dd1be073ab0592.tar.bz2
samba-f9b7cd53b9fe253b122cb545c2dd1be073ab0592.zip
s4-xattr: Use libreplace xattr functions directly
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index fc0cb00ae2..1d1480caec 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -231,6 +231,12 @@ fremoveea fsetea getea listea
removeea setea
''', 'attr', checklibc=True)
+ if (conf.CONFIG_SET('HAVE_ATTR_LISTF') or
+ conf.CONFIG_SET('HAVE_EXTATTR_LIST_FD') or
+ conf.CONFIG_SET('HAVE_FLISTEA') or
+ conf.CONFIG_SET('HAVE_FLISTXATTR')):
+ conf.DEFINE('HAVE_XATTR_SUPPORT', 1)
+
# Darwin has extra options to xattr-family functions
conf.CHECK_CODE('getxattr(0, 0, 0, 0, 0, 0);',
'XATTR_ADD_OPT',