Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/x86 Build fix for xen domu + PCI, from Juho Sal...



details:   https://anonhg.NetBSD.org/src/rev/dea92e9257cd
branches:  trunk
changeset: 758643:dea92e9257cd
user:      dholland <dholland%NetBSD.org@localhost>
date:      Fri Nov 12 02:07:27 2010 +0000

description:
Build fix for xen domu + PCI, from Juho Salminen in PR 44083.

diffstat:

 sys/arch/xen/x86/mainbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e6eb0f8c8cef -r dea92e9257cd sys/arch/xen/x86/mainbus.c
--- a/sys/arch/xen/x86/mainbus.c        Thu Nov 11 23:04:24 2010 +0000
+++ b/sys/arch/xen/x86/mainbus.c        Fri Nov 12 02:07:27 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mainbus.c,v 1.12 2010/08/07 21:59:11 cegger Exp $      */
+/*     $NetBSD: mainbus.c,v 1.13 2010/11/12 02:07:27 dholland Exp $    */
 /*     NetBSD: mainbus.c,v 1.53 2003/10/27 14:11:47 junyoung Exp       */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.12 2010/08/07 21:59:11 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.13 2010/11/12 02:07:27 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -133,7 +133,7 @@
 void
 mainbus_attach(device_t parent, device_t self, void *aux)
 {
-#if NPCI > 0
+#if defined(DOM0OPS) && NPCI > 0
        int mode;
 #endif
        union mainbus_attach_args mba;



Home | Main Index | Thread Index | Old Index