summaryrefslogtreecommitdiff
path: root/sysutils/fam/patches/patch-ap
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/fam/patches/patch-ap')
-rw-r--r--sysutils/fam/patches/patch-ap14
1 files changed, 7 insertions, 7 deletions
diff --git a/sysutils/fam/patches/patch-ap b/sysutils/fam/patches/patch-ap
index 5019e31e6d4..41ce8781050 100644
--- a/sysutils/fam/patches/patch-ap
+++ b/sysutils/fam/patches/patch-ap
@@ -1,7 +1,7 @@
-$NetBSD: patch-ap,v 1.9 2005/05/07 08:31:16 recht Exp $
+$NetBSD: patch-ap,v 1.10 2005/10/10 22:06:51 joerg Exp $
---- src/mntent_compat.c++.orig 2005-05-07 10:22:00.000000000 +0200
-+++ src/mntent_compat.c++ 2005-05-07 10:26:09.000000000 +0200
+--- src/mntent_compat.c++.orig 2005-07-24 02:27:46.000000000 +0000
++++ src/mntent_compat.c++
@@ -0,0 +1,191 @@
+/*
+ * Copyright (c) 1980, 1989, 1993, 1994
@@ -48,7 +48,7 @@ $NetBSD: patch-ap,v 1.9 2005/05/07 08:31:16 recht Exp $
+#include <sys/param.h>
+#include <sys/ucred.h>
+#include <sys/mount.h>
-+#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__)
++#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__) && !defined(__DragonFly__)
+# include <sys/statvfs.h>
+#endif
+
@@ -144,7 +144,7 @@ $NetBSD: patch-ap,v 1.9 2005/05/07 08:31:16 recht Exp $
+}
+
+static struct mntent *
-+#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__)
++#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__) && !defined(__DragonFly__)
+statfs_to_mntent (struct statvfs *mntbuf)
+#else
+statfs_to_mntent (struct statfs *mntbuf)
@@ -155,7 +155,7 @@ $NetBSD: patch-ap,v 1.9 2005/05/07 08:31:16 recht Exp $
+ _mntent.mnt_fsname = mntbuf->f_mntfromname;
+ _mntent.mnt_dir = mntbuf->f_mntonname;
+ _mntent.mnt_type = mntbuf->f_fstypename;
-+#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__)
++#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__) && !defined(__DragonFly__)
+ tmp = flags2opts (mntbuf->f_flag);
+#else
+ tmp = flags2opts (mntbuf->f_flags);
@@ -175,7 +175,7 @@ $NetBSD: patch-ap,v 1.9 2005/05/07 08:31:16 recht Exp $
+struct mntent *
+getmntent (FILE *fp)
+{
-+#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__)
++#if defined(HAVE_SYS_STATVFS_H) && !defined(__APPLE__) && !defined(__DragonFly__)
+ static struct statvfs *mntbuf;
+#else
+ static struct statfs *mntbuf;