aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/memfs_ll.cc4
-rw-r--r--example/passthrough_hp.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/example/memfs_ll.cc b/example/memfs_ll.cc
index 6038850..68f8e96 100644
--- a/example/memfs_ll.cc
+++ b/example/memfs_ll.cc
@@ -6,7 +6,6 @@
See the file COPYING.
*/
-#include <linux/limits.h>
#define FUSE_USE_VERSION 317
#include <algorithm>
@@ -28,6 +27,9 @@
#include <string_view>
#include <cstdint>
#include <fuse_lowlevel.h>
+#ifdef HAVE_LINUX_LIMITS_H
+#include <linux/limits.h>
+#endif
#define MEMFS_ATTR_TIMEOUT 0.0
#define MEMFS_ENTRY_TIMEOUT 0.0
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>