From 709dda5069dc7e5d14225f6c307c0d1b1d581151 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 26 Aug 2016 12:59:32 -0400 Subject: [PATCH] support systems without ENODATA --- src/xattr.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/xattr.hpp b/src/xattr.hpp index 07f8b03a..98f5c0ec 100644 --- a/src/xattr.hpp +++ b/src/xattr.hpp @@ -18,10 +18,18 @@ #include #endif -#ifndef ENOATTR +#if defined(ENODATA) && !defined(ENOATTR) #define ENOATTR ENODATA #endif +#if defined(ENOATTR) && !defined(ENODATA) +#define ENODATA ENOATTR +#endif + +#if !defined(ENOATTR) && !defined(ENODATA) +#error "Neither ENOATTR or ENODATA defined: please contact mergerfs author with platform information" +#endif + #ifndef XATTR_CREATE #define XATTR_CREATE 0x1 #endif