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 #ifdef a variable like its use



details:   https://anonhg.NetBSD.org/src/rev/b20c73f7545f
branches:  trunk
changeset: 794337:b20c73f7545f
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Mar 12 12:54:33 2014 +0000

description:
#ifdef a variable like its use

diffstat:

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

diffs (38 lines):

diff -r fccf8f44a6df -r b20c73f7545f sys/arch/x86/x86/consinit.c
--- a/sys/arch/x86/x86/consinit.c       Wed Mar 12 12:26:40 2014 +0000
+++ b/sys/arch/x86/x86/consinit.c       Wed Mar 12 12:54:33 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consinit.c,v 1.26 2014/01/26 15:49:25 taca Exp $       */
+/*     $NetBSD: consinit.c,v 1.27 2014/03/12 12:54:33 martin Exp $     */
 
 /*
  * Copyright (c) 1998
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.26 2014/01/26 15:49:25 taca Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.27 2014/03/12 12:54:33 martin Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_puc.h"
@@ -147,7 +147,9 @@
 consinit(void)
 {
        const struct btinfo_console *consinfo;
+#if (NGENFB > 0)
        const struct btinfo_framebuffer *fbinfo;
+#endif
        static int initted;
 #if (NCOM > 0)
        int rv;
@@ -163,7 +165,9 @@
 #endif
                consinfo = &default_consinfo;
 
+#if (NGENFB > 0)
        fbinfo = lookup_bootinfo(BTINFO_FRAMEBUFFER);
+#endif
 
        if (!strcmp(consinfo->devname, "pc")) {
                int error;



Home | Main Index | Thread Index | Old Index