summaryrefslogtreecommitdiff
path: root/lib/librefuse
diff options
context:
space:
mode:
authoragc <agc@NetBSD.org>2007-05-16 21:37:18 +0000
committeragc <agc@NetBSD.org>2007-05-16 21:37:18 +0000
commit9ceda06dfa9ecaa52cc8fb0bd50aa72b1e76add8 (patch)
tree6fad0d2d9ffae600ae09708e1d02e87f12282791 /lib/librefuse
parente54f9cf6a007ad329335a357f01d365fa72bd718 (diff)
The FUSE_USE_VERSION is the definition which the user sets, and which
determines the API. Provide a default for FUSE_USE_VERSION if it's not set, and use this value to determine the number of arguments given to fuse_main().
Diffstat (limited to 'lib/librefuse')
-rw-r--r--lib/librefuse/fuse.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/librefuse/fuse.h b/lib/librefuse/fuse.h
index 5b5b7e53e10..0beac51babd 100644
--- a/lib/librefuse/fuse.h
+++ b/lib/librefuse/fuse.h
@@ -28,6 +28,12 @@
#ifndef FUSE_H_
#define FUSE_H_ 20070123
+/* set the default version to use for the fuse interface */
+/* this value determines the API to be used */
+#ifndef FUSE_USE_VERSION
+#define FUSE_USE_VERSION 26
+#endif
+
#include <sys/types.h>
#include <puffs.h>
@@ -165,7 +171,7 @@ void fuse_teardown(struct fuse *, char *);
void fuse_unmount_compat22(const char *);
-#if FUSE_VERSION >= 26
+#if FUSE_USE_VERSION >= 26
#define fuse_main(argc, argv, op, arg) \
fuse_main_real(argc, argv, op, sizeof(*(op)), arg)
#else