$OpenBSD: patch-xuvmstat_c,v 1.3 2005/10/13 17:22:10 pvalchev Exp $
--- xuvmstat.c.orig	Fri Sep  9 07:38:48 2005
+++ xuvmstat.c	Tue Oct 11 16:55:32 2005
@@ -24,6 +24,7 @@
  * xuvmstat.c
  */
 
+#include <err.h>
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
@@ -31,9 +32,6 @@
 #include <sys/param.h>
 #include <sys/errno.h>
 #include <sys/time.h>
-#if (__NetBSD_Version__ < 105000000)
-#include <vm/vm.h>
-#endif
 #include <uvm/uvm_extern.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
@@ -52,6 +50,7 @@ struct graph *gp_faults, *gp_traps, *gp_
 
 #define WIDTH 300
 
+int
 main(argc, argv)
 
 int argc;
@@ -106,7 +105,7 @@ char **argv;
   gettimeofday(&otv, NULL);
 
   {
-    int count = 0, xfd = ConnectionNumber(xdpy.dpy), retval;
+    int xfd = ConnectionNumber(xdpy.dpy), retval;
     struct timeval now, incr, ping, timer;
     XEvent event;
    
@@ -154,6 +153,8 @@ char **argv;
 
   XFreeFont(xdpy.dpy, fnt_fixed);
   XCloseDisplay(xdpy.dpy);
+
+  return (0);
 }
 
 /*
@@ -214,6 +215,7 @@ int was_timeout;
 		  vals, colors, white);
   }
 
+#ifdef notyet
   y += 8;
   {
     static char *names[] = { "file", "anon", "exec", "free", "kernel" };
@@ -237,6 +239,7 @@ int was_timeout;
     y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, cexp.npages, names,
                   vals, colors, white);
   }
+#endif
 
   y += 8;