summaryrefslogtreecommitdiff
path: root/sysutils/lsof/patches
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2007-08-12 14:22:49 +0000
committerseb <seb@pkgsrc.org>2007-08-12 14:22:49 +0000
commit5bb330cc24149bb7bcb5c5c333f54bdffaa667dd (patch)
treea4875e34ce68666ca751db0e92bba96f293b076b /sysutils/lsof/patches
parent3f458fdfc1a4e11e927c3b6e8b5a5ffb5852c673 (diff)
downloadpkgsrc-5bb330cc24149bb7bcb5c5c333f54bdffaa667dd.tar.gz
Fix build on NetBSD-current which dropped MFSNAMELEN: pretend this CPP macro
is still there.
Diffstat (limited to 'sysutils/lsof/patches')
-rw-r--r--sysutils/lsof/patches/patch-af21
1 files changed, 16 insertions, 5 deletions
diff --git a/sysutils/lsof/patches/patch-af b/sysutils/lsof/patches/patch-af
index 61c56008e6c..3be58809b89 100644
--- a/sysutils/lsof/patches/patch-af
+++ b/sysutils/lsof/patches/patch-af
@@ -1,8 +1,19 @@
-$NetBSD: patch-af,v 1.7 2007/05/06 21:41:30 christos Exp $
+$NetBSD: patch-af,v 1.8 2007/08/12 14:22:49 seb 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
-@@ -161,6 +161,7 @@
+--- dialects/n+obsd/dlsof.h.orig 2006-03-28 21:54:15.000000000 +0000
++++ dialects/n+obsd/dlsof.h
+@@ -97,6 +97,10 @@ struct uio; /* dummy for function protot
+
+ #include <sys/mount.h>
+
++#if defined(NETBSDV) && !defined(MFSNAMELEN) && defined(_VFS_NAMELEN)
++#define MFSNAMELEN _VFS_NAMELEN
++#endif
++
+ # if (defined(OPENBSDV) && OPENBSDV>=3030) \
+ || (defined(NETBSDV) && __NetBSD_Version__>=106060000)
+ #undef _KERNEL
+@@ -161,6 +165,7 @@ struct nameidata; /* to satisfy a functi
#include <sys/socketvar.h>
#include <sys/un.h>
#include <sys/unpcb.h>
@@ -10,7 +21,7 @@ $NetBSD: patch-af,v 1.7 2007/05/06 21:41:30 christos Exp $
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
-@@ -170,7 +171,6 @@
+@@ -170,7 +175,6 @@ struct nameidata; /* to satisfy a functi
#include <netinet6/in6_pcb.h>
# endif /* defined(HASIPv6) && defined(NETBSDV) && !defined(HASINRIAIPv6) */