Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Be more naughty and don't even include <machine/cpu_...



details:   https://anonhg.NetBSD.org/src/rev/8cab3db19b44
branches:  trunk
changeset: 747413:8cab3db19b44
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Sep 14 09:26:28 2009 +0000

description:
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)

diffstat:

 sys/dev/rnd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5edcef0f2837 -r 8cab3db19b44 sys/dev/rnd.c
--- a/sys/dev/rnd.c     Mon Sep 14 02:46:29 2009 +0000
+++ b/sys/dev/rnd.c     Mon Sep 14 09:26:28 2009 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index