summaryrefslogtreecommitdiff
path: root/sysutils/lsof/patches
diff options
context:
space:
mode:
authorjlam <jlam>2000-07-29 08:52:21 +0000
committerjlam <jlam>2000-07-29 08:52:21 +0000
commitd0cbba6bf2293dbb950b056b76dc3c9aa2b2d568 (patch)
tree0d17f137d5a930be82a9fc88469ebee5bf39cd28 /sysutils/lsof/patches
parent43a6b74d3af03af7b9d2533119a8e4e7718e9b85 (diff)
downloadpkgsrc-d0cbba6bf2293dbb950b056b76dc3c9aa2b2d568.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/patches')
-rw-r--r--sysutils/lsof/patches/patch-aa37
1 files changed, 37 insertions, 0 deletions
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__)