pxattr: flags for DragonFly: no extattr support

This commit is contained in:
Jean-Francois Dockes 2017-06-28 07:04:44 +02:00
parent bfd049694a
commit bd4bc02238

View File

@ -40,11 +40,16 @@ OTHER DEALINGS IN THE SOFTWARE.
// the software is not actually calling us. If it does call us, this // the software is not actually calling us. If it does call us, this
// will bring attention to the necessity of a port. // 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 // just let the methods return errors (like they would on a non-xattr
// fs on e.g. linux) // fs on e.g. linux)
#if defined(__DragonFly__) || defined(__OpenBSD__)
#define HAS_NO_XATTR
#endif
#if defined(__FreeBSD__) || defined(PXALINUX) || defined(__APPLE__) \ #if defined(__FreeBSD__) || defined(PXALINUX) || defined(__APPLE__) \
|| defined(__OpenBSD__) || defined(HAS_NO_XATTR)
#ifndef TEST_PXATTR #ifndef TEST_PXATTR
@ -60,7 +65,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#include <sys/xattr.h> #include <sys/xattr.h>
#elif defined(__APPLE__) #elif defined(__APPLE__)
#include <sys/xattr.h> #include <sys/xattr.h>
#elif defined(__OpenBSD__) #elif defined(HAS_NO_XATTR)
#else #else
#error "Unknown system can't compile" #error "Unknown system can't compile"
#endif #endif