diff options
Diffstat (limited to 'sysutils/lsof/patches/patch-af')
-rw-r--r-- | sysutils/lsof/patches/patch-af | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/sysutils/lsof/patches/patch-af b/sysutils/lsof/patches/patch-af index 08f517ef1f4..705cb92bd64 100644 --- a/sysutils/lsof/patches/patch-af +++ b/sysutils/lsof/patches/patch-af @@ -1,7 +1,7 @@ -$NetBSD: patch-af,v 1.9 2007/08/12 15:00:34 seb Exp $ +$NetBSD: patch-af,v 1.10 2007/08/14 19:59:18 veego Exp $ ---- dialects/n+obsd/dlsof.h.orig 2006-03-28 16:54:15.000000000 -0500 -+++ dialects/n+obsd/dlsof.h 2007-05-06 17:37:00.000000000 -0400 +--- dialects/n+obsd/dlsof.h.orig 2006-03-28 23:54:15.000000000 +0200 ++++ dialects/n+obsd/dlsof.h 2007-08-11 18:16:59.000000000 +0200 @@ -161,6 +161,7 @@ #include <sys/socketvar.h> #include <sys/un.h> @@ -18,3 +18,26 @@ $NetBSD: patch-af,v 1.9 2007/08/12 15:00:34 seb Exp $ #include <netinet/in_pcb.h> #include <netinet/ip_var.h> #include <netinet/tcp.h> +@@ -264,6 +264,9 @@ + + #undef KERNEL + #include <ufs/mfs/mfsnode.h> ++# if defined(HASTMPFS) ++#include <fs/tmpfs/tmpfs.h> ++# endif /* defined(HASTMPFS) */ + + # if defined(HASNFSPROTO) + #include <nfs/rpcv2.h> +@@ -489,7 +492,12 @@ + struct l_vfs { + KA_T addr; /* kernel address */ + fsid_t fsid; /* file system ID */ ++#if defined(NETBSDV) && __NetBSD_Version__ >= 499002500 ++ /* MFSNAMELEN was removed from the kernel source after 4.99.24 */ ++ char type[sizeof(((struct statvfs *)NULL)->f_fstypename)]; /* type of file system */ ++#else + char type[MFSNAMELEN]; /* type of file system */ ++#endif + char *dir; /* mounted directory */ + char *fsname; /* file system name */ + struct l_vfs *next; /* forward link */ |