summaryrefslogtreecommitdiff
path: root/sysutils/lsof
diff options
context:
space:
mode:
authorjlam <jlam>2000-07-29 08:52:21 +0000
committerjlam <jlam>2000-07-29 08:52:21 +0000
commit5fa69aa8d820a0e734fbcccaa3644a653e2f3f3b (patch)
tree0d17f137d5a930be82a9fc88469ebee5bf39cd28 /sysutils/lsof
parent30b617553fa4375458ebdb9d4097b7d44b424163 (diff)
downloadpkgsrc-5fa69aa8d820a0e734fbcccaa3644a653e2f3f3b.tar.gz
Make this compile on <vm/vm*.h>-less systems. Should address pkg/10706
by Wolfgang Rupprech <wolfgang@wsrcc.com>.
Diffstat (limited to 'sysutils/lsof')
-rw-r--r--sysutils/lsof/files/patch-sum3
-rw-r--r--sysutils/lsof/patches/patch-aa37
2 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/lsof/files/patch-sum b/sysutils/lsof/files/patch-sum
new file mode 100644
index 00000000000..1ce43d4e367
--- /dev/null
+++ b/sysutils/lsof/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.4 2000/07/29 08:52:21 jlam Exp $
+
+MD5 (patch-aa) = 7772eb3a95183b06ce08035ee9a2b693
diff --git a/sysutils/lsof/patches/patch-aa b/sysutils/lsof/patches/patch-aa
new file mode 100644
index 00000000000..e41edac49a2
--- /dev/null
+++ b/sysutils/lsof/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.14 2000/07/29 08:52:22 jlam Exp $
+
+--- dialects/n+obsd/dlsof.h.orig Thu Jun 22 08:55:29 2000
++++ dialects/n+obsd/dlsof.h Sat Jul 29 04:45:23 2000
+@@ -47,6 +47,7 @@
+ #include <unistd.h>
+ #include <sys/filedesc.h>
+ #include <sys/mbuf.h>
++#include <sys/param.h>
+
+ # if defined(NETBSDV)
+ #include <sys/buf.h>
+@@ -183,6 +184,9 @@
+ #define _KERNEL
+ #include <sys/file.h>
+ #include <sys/fcntl.h>
++#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 105030000)
++struct vop_advlock_args { int dummy; }; /* to pacify lf_advlock() prototype */
++#endif
+ #include <sys/lockf.h>
+ #undef KERNEL
+ #undef _KERNEL
+@@ -197,10 +201,14 @@
+ #include <uvm/uvm.h>
+ # endif /* defined(UVM) */
+
++#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 105020000)
+ #include <vm/vm.h>
+ #include <vm/vm_map.h>
+ #include <vm/vm_object.h>
+ #include <vm/vm_pager.h>
++#else
++#include <uvm/uvm_extern.h>
++#endif
+
+ # if defined(OPENBSDV)
+ # if OPENBSDV==2030 && defined(__sparc__)