Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/top/machine for NetBSD 1.4 and above, use <sys/swap.h>
details: https://anonhg.NetBSD.org/src/rev/3e51f0b164b7
branches: trunk
changeset: 484822:3e51f0b164b7
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Apr 13 08:34:40 2000 +0000
description:
for NetBSD 1.4 and above, use <sys/swap.h>
diffstat:
usr.bin/top/machine/m_netbsd13.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r e42e997148b6 -r 3e51f0b164b7 usr.bin/top/machine/m_netbsd13.c
--- a/usr.bin/top/machine/m_netbsd13.c Thu Apr 13 08:29:56 2000 +0000
+++ b/usr.bin/top/machine/m_netbsd13.c Thu Apr 13 08:34:40 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: m_netbsd13.c,v 1.9 1999/11/05 07:25:14 lukem Exp $ */
+/* $NetBSD: m_netbsd13.c,v 1.10 2000/04/13 08:34:40 mrg Exp $ */
/*
* top - a top users display for Unix
@@ -34,7 +34,7 @@
* matthew green <mrg%eterna.com.au@localhost>
*
*
- * $Id: m_netbsd13.c,v 1.9 1999/11/05 07:25:14 lukem Exp $
+ * $Id: m_netbsd13.c,v 1.10 2000/04/13 08:34:40 mrg Exp $
*/
#define UVM
@@ -49,7 +49,12 @@
#include <sys/file.h>
#include <sys/time.h>
+/* NetBSD 1.4 has <sys/swap.h> */
+#if defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104000000
+#include <sys/swap.h>
+#else
#include <vm/vm_swap.h>
+#endif
#if defined(UVM)
#include <uvm/uvm_extern.h>
Home |
Main Index |
Thread Index |
Old Index