summaryrefslogtreecommitdiff
path: root/sysutils/xosview/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xosview/patches/patch-ad')
-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
+