]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Do not use <sys/xattr.h> under non-Linux systems 37364/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 23 Sep 2020 14:45:16 +0000 (16:45 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 23 Sep 2020 21:15:30 +0000 (23:15 +0200)
This commit was not cherry-picked from master because it is fixing an
incomplete backport. Commit 1e9e5ec in master was cherry-picked to
nautilus as 0be0fdf but part of the master commit was left out by mistake.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/libcephfs/lazyio.cc

index 16e8e0a66ecd90cb24264a80330fd0630b6845c6..b484730438fd786122d85384541639e12ac1d18f 100644 (file)
@@ -21,7 +21,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <dirent.h>
+#if defined(__linux__)
 #include <sys/xattr.h>
+#endif
 
 rados_t cluster;