summaryrefslogtreecommitdiff
path: root/lib/librefuse
diff options
context:
space:
mode:
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