summaryrefslogtreecommitdiff
path: root/filesystems/mtpfs/files
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/mtpfs/files')
-rw-r--r--filesystems/mtpfs/files/patch-Makefile.am10
-rw-r--r--filesystems/mtpfs/files/patch-Makefile.in11
-rw-r--r--filesystems/mtpfs/files/patch-mtpfs.c11
-rw-r--r--filesystems/mtpfs/files/patch-mtpfs.h11
4 files changed, 43 insertions, 0 deletions
diff --git a/filesystems/mtpfs/files/patch-Makefile.am b/filesystems/mtpfs/files/patch-Makefile.am
new file mode 100644
index 000000000000..88b3b171b057
--- /dev/null
+++ b/filesystems/mtpfs/files/patch-Makefile.am
@@ -0,0 +1,10 @@
+--- Makefile.am.orig 2020-07-02 17:25:56 UTC
++++ Makefile.am
+@@ -1,6 +1,6 @@
+ bin_PROGRAMS = mtpfs
+ mtpfs_SOURCES = mtpfs.c mtpfs.h
+-mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=22 $(FUSE_CFLAGS) $(GLIB_CFLAGS) $(MTP_CFLAGS)
++mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=26 $(FUSE_CFLAGS) $(GLIB_CFLAGS) $(MTP_CFLAGS)
+ mtpfs_LDADD = $(FUSE_LIBS) $(GLIB_LIBS) $(MTP_LIBS)
+
+ if USEMAD
diff --git a/filesystems/mtpfs/files/patch-Makefile.in b/filesystems/mtpfs/files/patch-Makefile.in
new file mode 100644
index 000000000000..81605bc20d6b
--- /dev/null
+++ b/filesystems/mtpfs/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2016-12-15 23:55:52 UTC
++++ Makefile.in
+@@ -287,7 +287,7 @@ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ mtpfs_SOURCES = mtpfs.c mtpfs.h $(am__append_1)
+-mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=22 $(FUSE_CFLAGS) $(GLIB_CFLAGS) \
++mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=26 $(FUSE_CFLAGS) $(GLIB_CFLAGS) \
+ $(MTP_CFLAGS) $(am__append_2)
+ mtpfs_LDADD = $(FUSE_LIBS) $(GLIB_LIBS) $(MTP_LIBS) $(am__append_3)
+ all: all-am
diff --git a/filesystems/mtpfs/files/patch-mtpfs.c b/filesystems/mtpfs/files/patch-mtpfs.c
new file mode 100644
index 000000000000..2c9be7d4cdb1
--- /dev/null
+++ b/filesystems/mtpfs/files/patch-mtpfs.c
@@ -0,0 +1,11 @@
+--- mtpfs.c.orig 2016-12-15 23:55:52 UTC
++++ mtpfs.c
+@@ -1774,7 +1774,7 @@ main (int argc, char *argv[])
+
+ DBG ("Start fuse");
+
+- fuse_stat = fuse_main (argc, argv, &mtpfs_oper);
++ fuse_stat = fuse_main (argc, argv, &mtpfs_oper, NULL);
+ DBG ("fuse_main returned %d\n", fuse_stat);
+ return fuse_stat;
+ }
diff --git a/filesystems/mtpfs/files/patch-mtpfs.h b/filesystems/mtpfs/files/patch-mtpfs.h
new file mode 100644
index 000000000000..92ca2ae91cda
--- /dev/null
+++ b/filesystems/mtpfs/files/patch-mtpfs.h
@@ -0,0 +1,11 @@
+--- mtpfs.h.orig 2016-12-15 23:55:52 UTC
++++ mtpfs.h
+@@ -17,7 +17,7 @@
+ #include <fcntl.h>
+ #include <dirent.h>
+ #include <errno.h>
+-#include <sys/statfs.h>
++#include <sys/mount.h>
+
+ #include <libmtp.h>
+ #include <glib.h>