$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 #include +#if defined(__linux__) #include +#endif #include #include #include @@ -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);