summaryrefslogtreecommitdiff
path: root/pkg/fuse/patch/0005-Fix-build-without-symbol-versioning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/fuse/patch/0005-Fix-build-without-symbol-versioning.patch')
-rw-r--r--pkg/fuse/patch/0005-Fix-build-without-symbol-versioning.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/fuse/patch/0005-Fix-build-without-symbol-versioning.patch b/pkg/fuse/patch/0005-Fix-build-without-symbol-versioning.patch
new file mode 100644
index 00000000..36408315
--- /dev/null
+++ b/pkg/fuse/patch/0005-Fix-build-without-symbol-versioning.patch
@@ -0,0 +1,29 @@
+From 549e21e31f4fa482d5e5db244848bb1ae7b69549 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Wed, 3 Jul 2019 00:52:16 -0700
+Subject: [PATCH] Fix build without symbol versioning
+
+---
+ include/fuse.h | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/include/fuse.h b/include/fuse.h
+index 2d2291c..7fd0348 100644
+--- a/include/fuse.h
++++ b/include/fuse.h
+@@ -908,7 +908,11 @@ void fuse_lib_help(struct fuse_args *args);
+ * `struct fuse_operations.init` handler.
+ * @return the created FUSE handle
+ */
+-#if FUSE_USE_VERSION == 30
++#if FUSE_USE_VERSION == 31
++struct fuse *fuse_new_31(struct fuse_args *args, const struct fuse_operations *op,
++ size_t op_size, void *private_data);
++#define fuse_new(args, op, size, data) fuse_new_31(args, op, size, data)
++#elif FUSE_USE_VERSION == 30
+ struct fuse *fuse_new_30(struct fuse_args *args, const struct fuse_operations *op,
+ size_t op_size, void *private_data);
+ #define fuse_new(args, op, size, data) fuse_new_30(args, op, size, data)
+--
+2.22.0
+