summaryrefslogtreecommitdiff
path: root/sysutils/gentoo
diff options
context:
space:
mode:
authoradam <adam>2004-05-07 13:50:37 +0000
committeradam <adam>2004-05-07 13:50:37 +0000
commit86846e714ba8e3450b627d76d77208671a04bf76 (patch)
treeaa482deca8703b2de3af678ffd63f0c7da314c8f /sysutils/gentoo
parent3b69f02603cd70c1c12c39580571740bf05db8ca (diff)
downloadpkgsrc-86846e714ba8e3450b627d76d77208671a04bf76.tar.gz
Deal with the statvfs
Diffstat (limited to 'sysutils/gentoo')
-rw-r--r--sysutils/gentoo/patches/patch-ac26
-rw-r--r--sysutils/gentoo/patches/patch-ad13
2 files changed, 39 insertions, 0 deletions
diff --git a/sysutils/gentoo/patches/patch-ac b/sysutils/gentoo/patches/patch-ac
new file mode 100644
index 00000000000..0619a064602
--- /dev/null
+++ b/sysutils/gentoo/patches/patch-ac
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.3 2004/05/07 13:50:37 adam Exp $
+
+--- src/mntent_wrap.c.orig 2004-05-07 15:22:04.000000000 +0000
++++ src/mntent_wrap.c
+@@ -100,6 +100,9 @@ gint mne_endmntent(FILE *filep)
+ #include <sys/mount.h>
+ #include <sys/param.h>
+ #include <sys/ucred.h>
++#ifdef HAVE_STRUCT_STATVFS
++#include <sys/statvfs.h>
++#endif
+
+ /* A pointer to one of these is returned by mne_setmntent(), depending on which file
+ ** name is given as an input. Note that on BSD systems, the system calls themselves
+@@ -115,7 +118,11 @@ static FILE f_fstab, f_mtab;
+ ** a call to getmntinfo(). The mtab_pos and mtab_num integers are then used to
+ ** keep track of where in the returned array of statfs structs we are.
+ */
++#ifdef HAVE_STRUCT_STATVFS
++static struct statvfs *mtab = NULL;
++#else
+ static struct statfs *mtab = NULL;
++#endif
+ static guint mtab_pos = 0, mtab_num = 0;
+
+ /* 1999-05-09 - An attempt at a BSD implementation, after having received input from
diff --git a/sysutils/gentoo/patches/patch-ad b/sysutils/gentoo/patches/patch-ad
new file mode 100644
index 00000000000..37199fa1e81
--- /dev/null
+++ b/sysutils/gentoo/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.3 2004/05/07 13:50:37 adam Exp $
+
+--- po/Makefile.in.in.orig 2004-05-07 15:44:12.000000000 +0000
++++ po/Makefile.in.in
+@@ -27,7 +27,7 @@ gettextsrcdir = $(datadir)/gettext/po
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+ MKINSTALLDIRS = @MKINSTALLDIRS@
+-mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
++mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(MKINSTALLDIRS)" ;; esac`
+
+ GMSGFMT = @GMSGFMT@
+ MSGFMT = @MSGFMT@