summaryrefslogtreecommitdiff
path: root/filesystems/fuse-ext2/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/fuse-ext2/patches/patch-af')
-rw-r--r--filesystems/fuse-ext2/patches/patch-af20
1 files changed, 20 insertions, 0 deletions
diff --git a/filesystems/fuse-ext2/patches/patch-af b/filesystems/fuse-ext2/patches/patch-af
new file mode 100644
index 00000000000..1bfe1160a8a
--- /dev/null
+++ b/filesystems/fuse-ext2/patches/patch-af
@@ -0,0 +1,20 @@
+$NetBSD: patch-af,v 1.1.1.1 2011/07/09 15:27:11 tron Exp $
+
+Fix build under NetBSD.
+
+--- fuse-ext2/fuse-ext2.c.orig 2009-11-09 15:28:02.000000000 +0000
++++ fuse-ext2/fuse-ext2.c 2011-07-09 12:52:23.000000000 +0100
+@@ -78,6 +78,13 @@
+ return 0;
+ }
+
++#ifdef __NetBSD__
++static int fuse_version (void)
++{
++ return FUSE_VERSION;
++}
++#endif
++
+ static void usage (void)
+ {
+ printf(usage_msg, PACKAGE, VERSION, fuse_version(), PACKAGE, HOME);