aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2025-09-15 17:41:47 -0700
committerBernd Schubert <bernd@bsbernd.com>2025-09-16 18:54:02 +0200
commit6e4557c57c4ce63de4042f77dcbf58627d13a59b (patch)
tree6f83884af230f11e23d3311fef39e76fdb249169 /example
parent939fc0dd3ed525c0be780537cfa41ffcbf98648c (diff)
downloadlibfuse-6e4557c57c4ce63de4042f77dcbf58627d13a59b.tar.gz
libfuse: don't put HAVE_STATX in a public header
fuse.h and fuse_lowlevel.h are already forward declaring struct statx, there is no need for HAVE_STATX anymore. HAVE_STATX also bears the risk to conflict with an application define. Alternatively it would have been possible to change to HAVE_FUSE_STATX. Get rid of the conditionals in the public header files and also remove HAVE_STATX definition from the public libfuse_config.h. Edit by Bernd: Commit message and removal of HAVE_STATX from public libfuse_config.h. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to 'example')
-rw-r--r--example/memfs_ll.cc2
-rw-r--r--example/passthrough.c2
-rw-r--r--example/passthrough_fh.c2
-rw-r--r--example/passthrough_ll.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/example/memfs_ll.cc b/example/memfs_ll.cc
index edda34b..7055a43 100644
--- a/example/memfs_ll.cc
+++ b/example/memfs_ll.cc
@@ -6,7 +6,7 @@
See the file GPL2.txt.
*/
-#define FUSE_USE_VERSION 317
+#define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 18)
#include <algorithm>
#include <stdio.h>
diff --git a/example/passthrough.c b/example/passthrough.c
index fdaa19e..1f09c2d 100644
--- a/example/passthrough.c
+++ b/example/passthrough.c
@@ -23,7 +23,7 @@
*/
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 18)
#define _GNU_SOURCE
diff --git a/example/passthrough_fh.c b/example/passthrough_fh.c
index 0d4fb5b..6403fbb 100644
--- a/example/passthrough_fh.c
+++ b/example/passthrough_fh.c
@@ -23,7 +23,7 @@
* \include passthrough_fh.c
*/
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 18)
#define _GNU_SOURCE
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c
index 5ca6efa..8a5ac2e 100644
--- a/example/passthrough_ll.c
+++ b/example/passthrough_ll.c
@@ -35,7 +35,7 @@
*/
#define _GNU_SOURCE
-#define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 12)
+#define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 18)
#include <fuse_lowlevel.h>
#include <unistd.h>