summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/wscript_configure6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure
index 09687a997b..c25ce78eb3 100644
--- a/lib/util/wscript_configure
+++ b/lib/util/wscript_configure
@@ -11,3 +11,9 @@ conf.CHECK_FUNCS_IN('flistxattr', 'attr', checklibc=True)
conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE')
+conf.CHECK_CODE('getxattr(NULL, NULL, NULL, 0, 0, 0)',
+ define='XATTR_ADDITIONAL_OPTIONS')
+
+if conf.CONFIG_SET('HAVE_FLISTXATTR'):
+ conf.DEFINE('HAVE_XATTR_SUPPORT', 1)
+