aports/testing/recoll/xattrs.patch
2017-06-01 12:52:48 +00:00

26 lines
714 B
Diff

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