diff options
author | adam <adam@pkgsrc.org> | 2004-05-07 13:50:37 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2004-05-07 13:50:37 +0000 |
commit | b1ca9e061e41cb7a58238292570c6c05bdba57d5 (patch) | |
tree | aa482deca8703b2de3af678ffd63f0c7da314c8f /sysutils/gentoo | |
parent | 8ee644965f347acd8a7803a7722f4fb1d1238d2b (diff) | |
download | pkgsrc-b1ca9e061e41cb7a58238292570c6c05bdba57d5.tar.gz |
Deal with the statvfs
Diffstat (limited to 'sysutils/gentoo')
-rw-r--r-- | sysutils/gentoo/patches/patch-ac | 26 | ||||
-rw-r--r-- | sysutils/gentoo/patches/patch-ad | 13 |
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@ |