1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
$NetBSD: patch-aa,v 1.2 2008/01/28 02:56:46 bjs Exp $
--- src/wdfs-main.c.orig 2007-04-12 04:30:08.000000000 -0400
+++ src/wdfs-main.c
@@ -131,6 +131,10 @@ static struct fuse_opt wdfs_opts[] = {
FUSE_OPT_END
};
+#ifndef FUSE_USE_VERSION
+#define FUSE_USE_VERSION FUSE_VERSION
+#endif
+
static int wdfs_opt_proc(
void *data, const char *option, int key, struct fuse_args *option_list)
{
@@ -1213,7 +1217,8 @@ static int wdfs_statfs(const char *local
/* just say hello when fuse takes over control. */
-#if FUSE_VERSION >= 26
+
+#if FUSE_USE_VERSION >= 26
static void* wdfs_init(struct fuse_conn_info *conn)
#else
static void* wdfs_init()
@@ -1308,7 +1313,7 @@ static void print_help()
/* just a simple wrapper for fuse_main(), because the interface changed... */
static int call_fuse_main(struct fuse_args *args)
{
-#if FUSE_VERSION >= 26
+#if FUSE_USE_VERSION >= 26
return fuse_main(args->argc, args->argv, &wdfs_operations, NULL);
#else
return fuse_main(args->argc, args->argv, &wdfs_operations);
|