pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/gentoo/patches Deal with the statvfs



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8d1ef4bec6dc
branches:  trunk
changeset: 474921:8d1ef4bec6dc
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri May 07 13:50:37 2004 +0000

description:
Deal with the statvfs

diffstat:

 sysutils/gentoo/patches/patch-ac |  26 ++++++++++++++++++++++++++
 sysutils/gentoo/patches/patch-ad |  13 +++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)

diffs (47 lines):

diff -r d1a088e703d6 -r 8d1ef4bec6dc sysutils/gentoo/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gentoo/patches/patch-ac  Fri May 07 13:50:37 2004 +0000
@@ -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 -r d1a088e703d6 -r 8d1ef4bec6dc sysutils/gentoo/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gentoo/patches/patch-ad  Fri May 07 13:50:37 2004 +0000
@@ -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@



Home | Main Index | Thread Index | Old Index