summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authormrg <mrg>2000-04-13 10:03:53 +0000
committermrg <mrg>2000-04-13 10:03:53 +0000
commitc1059d948df9a4c721d8f1381840eb61182fa39d (patch)
treeff2190d257328021fba4f95f667d58a6ce6b119f /sysutils
parent865d018a23caebf673016e55d0e6a1315a1d655f (diff)
downloadpkgsrc-c1059d948df9a4c721d8f1381840eb61182fa39d.tar.gz
use <sys/swap.h> on NetBSD 1.4 and later.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/xosview/patches/patch-ad17
1 files changed, 17 insertions, 0 deletions
diff --git a/sysutils/xosview/patches/patch-ad b/sysutils/xosview/patches/patch-ad
new file mode 100644
index 00000000000..c1f2638b2c8
--- /dev/null
+++ b/sysutils/xosview/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.3 2000/04/13 10:03:53 mrg Exp $
+
+--- bsd/kernel.cc.orig Wed Feb 17 01:09:21 1999
++++ bsd/kernel.cc Thu Apr 13 18:37:29 2000
+@@ -67,7 +67,11 @@
+
+ #ifdef HAVE_SWAPCTL
+ #include <unistd.h> /* For swapctl proto. */
+-#include <vm/vm_swap.h> /* For swapent, SWAP_*. */
++#if defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104000000
++#include <sys/swap.h> /* For swapent, SWAP_*. */
++#else
++#include <vm/vm_swap.h>
++#endif
+ #include <stdlib.h> /* For malloc(), free(). */
+ #endif
+