Module Name: src
Committed By: pooka
Date: Mon Sep 14 09:26:28 UTC 2009
Modified Files:
src/sys/dev: rnd.c
Log Message:
Be more naughty and don't even include <machine/cpu_counter.h> for
rump builds. Hopefully fixes the alpha build failure he@ pointed
out to me.
(yes __HAVE_CPU_COUNTER involves a trickery)
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/dev/rnd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/rnd.c
diff -u src/sys/dev/rnd.c:1.75 src/sys/dev/rnd.c:1.76
--- src/sys/dev/rnd.c:1.75 Sun Sep 13 18:45:10 2009
+++ src/sys/dev/rnd.c Mon Sep 14 09:26:28 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rnd.c,v 1.75 2009/09/13 18:45:10 pooka Exp $ */
+/* $NetBSD: rnd.c,v 1.76 2009/09/14 09:26:28 pooka Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.75 2009/09/13 18:45:10 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.76 2009/09/14 09:26:28 pooka Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -51,7 +51,7 @@
#include <sys/kauth.h>
#include <sys/once.h>
-#ifdef __HAVE_CPU_COUNTER
+#if defined(__HAVE_CPU_COUNTER) && !defined(_RUMPKERNEL) /* XXX: bad pooka */
#include <machine/cpu_counter.h>
#endif