summaryrefslogtreecommitdiff
path: root/sysutils/lsof
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2000-08-13 12:19:28 +0000
committerkim <kim@pkgsrc.org>2000-08-13 12:19:28 +0000
commitefee532d9fb258a3bc5afcf4fa7fec52e334b26e (patch)
tree651c9fbe856697aea9eaaacc808ff36687200926 /sysutils/lsof
parent320644a4da9c650bfba1299b46fcd579bf5dcc4c (diff)
downloadpkgsrc-efee532d9fb258a3bc5afcf4fa7fec52e334b26e.tar.gz
When __NetBSD_Version__ is not defined we need to assume the old stuff
(vm) rather than the new stuff (uvm).
Diffstat (limited to 'sysutils/lsof')
-rw-r--r--sysutils/lsof/files/patch-sum4
-rw-r--r--sysutils/lsof/patches/patch-aa31
2 files changed, 25 insertions, 10 deletions
diff --git a/sysutils/lsof/files/patch-sum b/sysutils/lsof/files/patch-sum
index e586af2ff79..e695dba5ea7 100644
--- a/sysutils/lsof/files/patch-sum
+++ b/sysutils/lsof/files/patch-sum
@@ -1,3 +1,3 @@
-$NetBSD: patch-sum,v 1.6 2000/08/11 14:40:53 itojun Exp $
+$NetBSD: patch-sum,v 1.7 2000/08/13 12:19:28 kim Exp $
-MD5 (patch-aa) = 7772eb3a95183b06ce08035ee9a2b693
+MD5 (patch-aa) = 355b11daf8f7c8ea7677b42bab072835
diff --git a/sysutils/lsof/patches/patch-aa b/sysutils/lsof/patches/patch-aa
index e41edac49a2..6ae4794e68c 100644
--- a/sysutils/lsof/patches/patch-aa
+++ b/sysutils/lsof/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.14 2000/07/29 08:52:22 jlam Exp $
+$NetBSD: patch-aa,v 1.15 2000/08/13 12:19:29 kim 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
+--- dialects/n+obsd/dlsof.h.orig Thu Jun 22 15:55:29 2000
++++ dialects/n+obsd/dlsof.h Sun Aug 13 15:13:46 2000
@@ -47,6 +47,7 @@
#include <unistd.h>
#include <sys/filedesc.h>
@@ -10,7 +10,22 @@ $NetBSD: patch-aa,v 1.14 2000/07/29 08:52:22 jlam Exp $
# if defined(NETBSDV)
#include <sys/buf.h>
-@@ -183,6 +184,9 @@
+@@ -90,14 +91,12 @@
+ #include <netinet/tcp_var.h>
+ #include <sys/ucred.h>
+
+-# if defined(UVM)
+ /*
+ * Avoid conflicts with definitions in <vm/vm_param.h>.
+ */
+
+ #undef FALSE
+ #undef TRUE
+-# endif /* defined(UVM) */
+
+ #include <sys/vnode.h>
+
+@@ -183,6 +182,9 @@
#define _KERNEL
#include <sys/file.h>
#include <sys/fcntl.h>
@@ -20,17 +35,17 @@ $NetBSD: patch-aa,v 1.14 2000/07/29 08:52:22 jlam Exp $
#include <sys/lockf.h>
#undef KERNEL
#undef _KERNEL
-@@ -197,10 +201,14 @@
+@@ -197,10 +199,14 @@
#include <uvm/uvm.h>
# endif /* defined(UVM) */
-+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 105020000)
++#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 105020000)
++#include <uvm/uvm_extern.h>
++#else
#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)