summaryrefslogtreecommitdiff
path: root/devel/libinstaller/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libinstaller/patches/patch-aa')
-rw-r--r--devel/libinstaller/patches/patch-aa34
1 files changed, 34 insertions, 0 deletions
diff --git a/devel/libinstaller/patches/patch-aa b/devel/libinstaller/patches/patch-aa
new file mode 100644
index 00000000000..4517e06636d
--- /dev/null
+++ b/devel/libinstaller/patches/patch-aa
@@ -0,0 +1,34 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/02/09 05:44:18 xtraeme Exp $
+
+--- mount.c.orig 2005-02-09 04:51:24.000000000 +0100
++++ mount.c 2005-02-09 04:52:38.000000000 +0100
+@@ -52,11 +52,18 @@
+ #include "commands.h"
+ #include "functions.h"
+
++#if (__NetBSD_Version__ >= 200040000)
++#define STATFS statvfs
++#else
++#define STATFS statfs
++#endif
++
++
+ void
+ unmount_all_under_r(struct i_fn_args *a, struct commands *cmds,
+- char *mtpt, struct statfs *mt_array, int count)
++ char *mtpt, struct STATFS *mt_array, int count)
+ {
+- struct statfs *mt_ptr;
++ struct STATFS *mt_ptr;
+ int k = count;
+ int unmount_me = 0;
+
+@@ -85,7 +92,7 @@
+ void
+ unmount_all_under(struct i_fn_args *a, struct commands *cmds, char *fmt, ...)
+ {
+- struct statfs *mt_array;
++ struct STATFS *mt_array;
+ int count;
+ char *mtpt;
+ va_list args;