summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.h
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2020-01-09 16:17:57 +0300
committerXavi Hernandez <xhernandez@redhat.com>2020-01-13 11:24:48 +0000
commit7dcbf096087cb6b939149c6f14ea2c3b2ab861e4 (patch)
treeb3d7e73c642b0fe7a20c9db95e43875f3f9a1f74 /xlators/storage/posix/src/posix.h
parenta73baf4e50fd8468f726179d89ba90364c5b8329 (diff)
xlators/storage: prefer HAVE_xxx to host C library predefines
Rely on configure-time HAVE_SET_FSID instead of predefined linux and __GLIBC__, in the same way as fusermount.c does. Change-Id: If81f821014bbf3fdc43950670e316b4d178b4cac Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Updates: bz#1193929
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r--xlators/storage/posix/src/posix.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h
index 629cd5abf04..c68658924ac 100644
--- a/xlators/storage/posix/src/posix.h
+++ b/xlators/storage/posix/src/posix.h
@@ -16,12 +16,8 @@
#include <dirent.h>
#include <time.h>
-#ifdef linux
-#ifdef __GLIBC__
+#ifdef HAVE_SET_FSID
#include <sys/fsuid.h>
-#else
-#include <unistd.h>
-#endif
#endif
#ifdef HAVE_SYS_XATTR_H