Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Fix build of kernels without PCI support li...



details:   https://anonhg.NetBSD.org/src/rev/03163d5849e1
branches:  trunk
changeset: 749298:03163d5849e1
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Nov 25 19:46:19 2009 +0000

description:
Fix build of kernels without PCI support like "GENERIC_TINY".

diffstat:

 sys/arch/x86/x86/x86_autoconf.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r f0bfc161b04c -r 03163d5849e1 sys/arch/x86/x86/x86_autoconf.c
--- a/sys/arch/x86/x86/x86_autoconf.c   Wed Nov 25 17:08:08 2009 +0000
+++ b/sys/arch/x86/x86/x86_autoconf.c   Wed Nov 25 19:46:19 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_autoconf.c,v 1.46 2009/11/06 23:10:22 dyoung Exp $ */
+/*     $NetBSD: x86_autoconf.c,v 1.47 2009/11/25 19:46:19 tron Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.46 2009/11/06 23:10:22 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.47 2009/11/25 19:46:19 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -67,11 +67,15 @@
 #include <dev/pci/pcivar.h>
 #endif
 #include <dev/wsfb/genfbvar.h>
+#if NPCI > 0
 #include <dev/pci/genfb_pcivar.h>
+#endif
 #include <dev/ic/vgareg.h>
 
+#if NPCI > 0
 static struct genfb_colormap_callback gfb_cb;
 static struct genfb_pmf_callback pmf_cb;
+#endif
 #ifdef VGA_POST
 static struct vga_post *vga_posth = NULL;
 #endif



Home | Main Index | Thread Index | Old Index