diff options
author | Gleb Popov <6yearold@gmail.com> | 2025-06-24 09:17:42 +0300 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-06-25 13:04:59 +0200 |
commit | e9a140b8172c312981b2bb834011ef782a386504 (patch) | |
tree | 20269814ee85dce057e546c14a61aecf58c83bc1 /example/memfs_ll.cc | |
parent | 596732dd06f7737e4a4c050773f88c8d36fd9b61 (diff) | |
download | libfuse-e9a140b8172c312981b2bb834011ef782a386504.tar.gz |
examples: Guard inclusions of Linux headers with appropriate ifdefs
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Diffstat (limited to 'example/memfs_ll.cc')
-rw-r--r-- | example/memfs_ll.cc | 4 |
1 files changed, 3 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 |