$NetBSD: patch-af,v 1.1 2004/05/08 18:24:00 cl Exp $

--- misc/xen_cpuperf.c.orig	2004-04-18 04:29:11.000000000 +0200
+++ misc/xen_cpuperf.c
@@ -9,7 +9,9 @@
 
 #include <sys/types.h>
 #include <sched.h>
+#if defined(__linux__)
 #include <error.h>
+#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
@@ -217,7 +219,7 @@ int main(int argc, char **argv)
         }
     }
 
-    if ( (privfd = open("/proc/xeno/privcmd", O_RDWR)) == -1 )
+    if ( (privfd = open(PRIVCMD_PATH, O_RDWR)) == -1 )
     {
         fprintf(stderr, "Could not open privileged Xen control interface.\n");
         exit(1);
