Module Name: src Committed By: dholland Date: Fri Nov 12 02:07:28 UTC 2010
Modified Files: src/sys/arch/xen/x86: mainbus.c Log Message: Build fix for xen domu + PCI, from Juho Salminen in PR 44083. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/xen/x86/mainbus.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/arch/xen/x86/mainbus.c diff -u src/sys/arch/xen/x86/mainbus.c:1.12 src/sys/arch/xen/x86/mainbus.c:1.13 --- src/sys/arch/xen/x86/mainbus.c:1.12 Sat Aug 7 21:59:11 2010 +++ src/sys/arch/xen/x86/mainbus.c Fri Nov 12 02:07:27 2010 @@ -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;