summaryrefslogtreecommitdiff
path: root/sysutils/lsof/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/lsof/patches/patch-ad')
-rw-r--r--sysutils/lsof/patches/patch-ad41
1 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/lsof/patches/patch-ad b/sysutils/lsof/patches/patch-ad
new file mode 100644
index 00000000000..288c77b520c
--- /dev/null
+++ b/sysutils/lsof/patches/patch-ad
@@ -0,0 +1,41 @@
+$NetBSD: patch-ad,v 1.11 2006/06/04 21:00:54 christos Exp $
+
+--- dialects/n+obsd/dnode.c.orig 2005-08-08 15:53:32.000000000 -0400
++++ dialects/n+obsd/dnode.c 2006-06-04 16:57:22.000000000 -0400
+@@ -38,6 +38,10 @@
+
+ #include "lsof.h"
+
++#if __NetBSD_Version__ > 399001800
++#define NOLOCKF
++#endif
++
+
+ #if defined(HASFDESCFS) && HASFDESCFS==1
+ _PROTOTYPE(static int lkup_dev_tty,(dev_t *dr, INODETYPE *ir));
+@@ -183,7 +187,9 @@
+ unsigned char ns;
+ unsigned char rdevs;
+ char *ep, *ty;
++#ifndef NOLOCKF
+ struct lockf lf, *lff, *lfp;
++#endif
+ struct inode i;
+ struct mfsnode m;
+ struct nfsnode n;
+@@ -608,6 +614,7 @@
+
+ }
+
++#ifndef NOLOCKF
+ if ((lff = i.i_lockf)) {
+
+ /*
+@@ -656,6 +663,7 @@
+ break;
+ } while ((lfp = lf.lf_next) && lfp != lff);
+ }
++#endif
+ break;
+ default:
+ if (v->v_type == VBAD || v->v_type == VNON)