aboutsummaryrefslogtreecommitdiffstats
path: root/testing/recoll/xattrs.patch
blob: be96f83252d151ce0a720c02acd331381a1efb06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/utils/pxattr.cpp b/utils/pxattr.cpp
index 1f3c7b1..765416c 100644
--- a/utils/pxattr.cpp
+++ b/utils/pxattr.cpp
@@ -44,7 +44,7 @@ OTHER DEALINGS IN THE SOFTWARE.
 // just let the methods return errors (like they would on a non-xattr
 // fs on e.g. linux)
 #if defined(__FreeBSD__) || defined(PXALINUX) || defined(__APPLE__) \
-    || defined(__OpenBSD__)
+    || defined(__OpenBSD__) || !defined(__GLIBC__)
 
 
 #ifndef TEST_PXATTR
@@ -60,7 +60,7 @@ OTHER DEALINGS IN THE SOFTWARE.
 #include <sys/xattr.h>
 #elif defined(__APPLE__)
 #include <sys/xattr.h>
-#elif defined(__OpenBSD__)
+#elif defined(__OpenBSD__) || !defined(__GLIBC__)
 #else
 #error "Unknown system can't compile"
 #endif
-- 
2.13.0