From 668c4bed1a253fdc9ad6a94d7c367795b83bde28 Mon Sep 17 00:00:00 2001 From: Valentin Hilbig Date: Sun, 13 Dec 2015 21:04:53 +0100 Subject: [PATCH] allow build WITHOUT_XATTR --- src/fs_xattr.cpp | 3 +++ src/getxattr.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fs_xattr.cpp b/src/fs_xattr.cpp index 16f6f8f5..f279513e 100644 --- a/src/fs_xattr.cpp +++ b/src/fs_xattr.cpp @@ -24,7 +24,10 @@ #include #include +#ifndef WITHOUT_XATTR #include +#endif +#include #include #include #include diff --git a/src/getxattr.cpp b/src/getxattr.cpp index 2e511e76..8b727d3b 100644 --- a/src/getxattr.cpp +++ b/src/getxattr.cpp @@ -62,7 +62,7 @@ _lgetxattr(const string &path, return ((rv == -1) ? -errno : rv); #else - return -ENOSUP; + return -ENOTSUP; #endif }