From bd4bc02238b0ca5642270a9de50f877f8468186d Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 28 Jun 2017 07:04:44 +0200 Subject: [PATCH] pxattr: flags for DragonFly: no extattr support --- src/utils/pxattr.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/utils/pxattr.cpp b/src/utils/pxattr.cpp index 1f3c7b13..77ef94dd 100644 --- a/src/utils/pxattr.cpp +++ b/src/utils/pxattr.cpp @@ -40,11 +40,16 @@ OTHER DEALINGS IN THE SOFTWARE. // the software is not actually calling us. If it does call us, this // will bring attention to the necessity of a port. // -// If the platform is known not supporting extattrs (e.g.__OpenBSD__), +// If the platform is known not to support extattrs (e.g.__OpenBSD__), // just let the methods return errors (like they would on a non-xattr // fs on e.g. linux) + +#if defined(__DragonFly__) || defined(__OpenBSD__) +#define HAS_NO_XATTR +#endif + #if defined(__FreeBSD__) || defined(PXALINUX) || defined(__APPLE__) \ - || defined(__OpenBSD__) + || defined(HAS_NO_XATTR) #ifndef TEST_PXATTR @@ -60,7 +65,7 @@ OTHER DEALINGS IN THE SOFTWARE. #include #elif defined(__APPLE__) #include -#elif defined(__OpenBSD__) +#elif defined(HAS_NO_XATTR) #else #error "Unknown system can't compile" #endif