aboutsummaryrefslogtreecommitdiffstats
path: root/example/passthrough_hp.cc
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2025-06-24 09:17:42 +0300
committerBernd Schubert <bernd@bsbernd.com>2025-06-25 13:04:59 +0200
commite9a140b8172c312981b2bb834011ef782a386504 (patch)
tree20269814ee85dce057e546c14a61aecf58c83bc1 /example/passthrough_hp.cc
parent596732dd06f7737e4a4c050773f88c8d36fd9b61 (diff)
downloadlibfuse-e9a140b8172c312981b2bb834011ef782a386504.tar.gz
examples: Guard inclusions of Linux headers with appropriate ifdefs
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Diffstat (limited to 'example/passthrough_hp.cc')
-rw-r--r--example/passthrough_hp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/passthrough_hp.cc b/example/passthrough_hp.cc
index 4f34e2b..65377b9 100644
--- a/example/passthrough_hp.cc
+++ b/example/passthrough_hp.cc
@@ -59,7 +59,9 @@
#include <string.h>
#include <sys/file.h>
#include <sys/resource.h>
+#ifdef HAVE_SYS_XATTR_H
#include <sys/xattr.h>
+#endif
#include <time.h>
#include <unistd.h>
#include <pthread.h>