summaryrefslogtreecommitdiff
path: root/sysutils/top/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-02-19 02:40:33 +0000
committerwiz <wiz@pkgsrc.org>2000-02-19 02:40:33 +0000
commit52fc1e2dbff74d2c852ffeacc14f3c352984ffea (patch)
tree06b9ccf0adc8f09b414573312bf5cf71f80efe30 /sysutils/top/patches
parentc553089ea4725939fc35b23f9d7a7f079ac915b9 (diff)
downloadpkgsrc-52fc1e2dbff74d2c852ffeacc14f3c352984ffea.tar.gz
${UVM} cleanup: now detect by NetBSD version if it has UVM or not.
(copied from x11/kdebase/files/memory_netbsd.cpp)
Diffstat (limited to 'sysutils/top/patches')
-rw-r--r--sysutils/top/patches/patch-ab13
-rw-r--r--sysutils/top/patches/patch-ac24
2 files changed, 12 insertions, 25 deletions
diff --git a/sysutils/top/patches/patch-ab b/sysutils/top/patches/patch-ab
index cc5749e2201..149fe21ea03 100644
--- a/sysutils/top/patches/patch-ab
+++ b/sysutils/top/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.8 1999/06/28 22:19:12 tron Exp $
+$NetBSD: patch-ab,v 1.9 2000/02/19 02:40:35 wiz Exp $
---- machine/m_netbsd13.c.orig Tue Jun 29 00:14:19 1999
-+++ machine/m_netbsd13.c Tue Jun 29 00:16:18 1999
-@@ -0,0 +1,884 @@
+--- ./machine/m_netbsd13.c.orig Sat Feb 19 03:24:47 2000
++++ ./machine/m_netbsd13.c Sat Feb 19 03:31:13 2000
+@@ -0,0 +1,887 @@
+/*
+ * top - a top users display for Unix
+ *
@@ -31,12 +31,15 @@ $NetBSD: patch-ab,v 1.8 1999/06/28 22:19:12 tron Exp $
+ * matthew green <mrg@eterna.com.au>
+ *
+ *
-+ * $Id: patch-ab,v 1.8 1999/06/28 22:19:12 tron Exp $
++ * $Id: patch-ab,v 1.9 2000/02/19 02:40:35 wiz Exp $
+ */
+
+#include <sys/types.h>
+#include <sys/signal.h>
+#include <sys/param.h>
++#if __NetBSD_Version__ > 103080000
++#define UVM
++#endif
+#include <sys/stat.h>
+#include <sys/errno.h>
+#include <sys/sysctl.h>
diff --git a/sysutils/top/patches/patch-ac b/sysutils/top/patches/patch-ac
index d016249993e..437deaaf447 100644
--- a/sysutils/top/patches/patch-ac
+++ b/sysutils/top/patches/patch-ac
@@ -1,24 +1,8 @@
-$NetBSD: patch-ac,v 1.5 1999/03/17 10:47:42 agc Exp $
+$NetBSD: patch-ac,v 1.6 2000/02/19 02:40:35 wiz Exp $
-Add UVM definition for NetBSD
-Correct the install commands
-
---- Makefile.X.orig Wed Nov 20 02:19:24 1996
-+++ Makefile.X Wed Mar 17 10:21:02 1999
-@@ -55,6 +55,12 @@
- TERMCAP = %termcap%
-
- CFLAGS = %cflgs% $(CDEFS)
-+.ifndef UVM
-+UVM=
-+.endif
-+.if ${UVM} != ""
-+CFLAGS+= -DUVM
-+.endif
- LINTFLAGS = -x $(CDEFS)
-
- all: Makefile top.local.h top
-@@ -100,10 +106,10 @@
+--- ./Makefile.X.orig Wed Nov 20 03:19:24 1996
++++ ./Makefile.X Sat Feb 19 03:34:17 2000
+@@ -100,10 +100,10 @@
install: top top.1 install-top install-$(MANSTY)
install-top: