summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2000-04-13 10:03:53 +0000
committermrg <mrg@pkgsrc.org>2000-04-13 10:03:53 +0000
commit79f026252d761b0f3c6a53d9bfd8eb4b311d0b8f (patch)
treeff2190d257328021fba4f95f667d58a6ce6b119f /sysutils
parentb67db73795960d031f36a23021ceec3a436c24ed (diff)
downloadpkgsrc-79f026252d761b0f3c6a53d9bfd8eb4b311d0b8f.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
+