From efee532d9fb258a3bc5afcf4fa7fec52e334b26e Mon Sep 17 00:00:00 2001 From: kim Date: Sun, 13 Aug 2000 12:19:28 +0000 Subject: When __NetBSD_Version__ is not defined we need to assume the old stuff (vm) rather than the new stuff (uvm). --- sysutils/lsof/files/patch-sum | 4 ++-- sysutils/lsof/patches/patch-aa | 31 +++++++++++++++++++++++-------- 2 files changed, 25 insertions(+), 10 deletions(-) (limited to 'sysutils') 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 #include @@ -10,7 +10,22 @@ $NetBSD: patch-aa,v 1.14 2000/07/29 08:52:22 jlam Exp $ # if defined(NETBSDV) #include -@@ -183,6 +184,9 @@ +@@ -90,14 +91,12 @@ + #include + #include + +-# if defined(UVM) + /* + * Avoid conflicts with definitions in . + */ + + #undef FALSE + #undef TRUE +-# endif /* defined(UVM) */ + + #include + +@@ -183,6 +182,9 @@ #define _KERNEL #include #include @@ -20,17 +35,17 @@ $NetBSD: patch-aa,v 1.14 2000/07/29 08:52:22 jlam Exp $ #include #undef KERNEL #undef _KERNEL -@@ -197,10 +201,14 @@ +@@ -197,10 +199,14 @@ #include # endif /* defined(UVM) */ -+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 105020000) ++#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 105020000) ++#include ++#else #include #include #include #include -+#else -+#include +#endif # if defined(OPENBSDV) -- cgit v1.2.3