aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tar/patches/100-fix_xattr_disable.patch
blob: 5735bd2364a4f324b54a3a49826921ead905d06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/lib/xattr-at.c
+++ b/lib/xattr-at.c
@@ -18,6 +18,8 @@
 
 #include <config.h>
 
+#ifdef HAVE_XATTRS
+
 #include "xattr-at.h"
 #include "openat.h"
 
@@ -108,3 +110,5 @@
 #undef AT_FUNC_RESULT
 #undef AT_FUNC_POST_FILE_PARAM_DECLS
 #undef AT_FUNC_POST_FILE_ARGS
+
+#endif