summaryrefslogtreecommitdiff
path: root/sysutils/xosview/patches/patch-ae
blob: eddae16f903413fa2481f3d7c058d751b34f13f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ae,v 1.12 2007/04/14 20:32:41 veego Exp $

--- bsd/pagemeter.h.orig	2003-10-09 06:22:32.000000000 +0200
+++ bsd/pagemeter.h	2007-04-14 22:23:47.000000000 +0200
@@ -30,6 +30,9 @@
 #include <vm/vm.h>
 #endif
 #include <uvm/uvm_extern.h>
+#if defined (VM_UVMEXP2)
+#include <sys/sysctl.h>		/*  Needed for uvmexp_sysctl.  */
+#endif
 #else
 #include <sys/vmmeter.h>
 #endif
@@ -48,7 +51,11 @@
   void getpageinfo( void );
 private:
 #if defined(UVM)
+# ifdef VM_UVMEXP2
+  struct uvmexp_sysctl prev_;
+# else
   struct uvmexp	prev_;
+# endif
 #else
   struct vmmeter prev_;
 #endif