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 problem when there is no com(4) b...



details:   https://anonhg.NetBSD.org/src/rev/cb3dbc41ff89
branches:  trunk
changeset: 326347:cb3dbc41ff89
user:      taca <taca%NetBSD.org@localhost>
date:      Sun Jan 26 15:49:25 2014 +0000

description:
Fix build problem when there is no com(4) but ucom(4).

diffstat:

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

diffs (28 lines):

diff -r ccd83dc13800 -r cb3dbc41ff89 sys/arch/x86/x86/consinit.c
--- a/sys/arch/x86/x86/consinit.c       Sun Jan 26 10:54:24 2014 +0000
+++ b/sys/arch/x86/x86/consinit.c       Sun Jan 26 15:49:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consinit.c,v 1.25 2014/01/26 10:54:24 msaitoh Exp $    */
+/*     $NetBSD: consinit.c,v 1.26 2014/01/26 15:49:25 taca Exp $       */
 
 /*
  * Copyright (c) 1998
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.25 2014/01/26 10:54:24 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.26 2014/01/26 15:49:25 taca Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_puc.h"
@@ -149,7 +149,9 @@
        const struct btinfo_console *consinfo;
        const struct btinfo_framebuffer *fbinfo;
        static int initted;
+#if (NCOM > 0)
        int rv;
+#endif
 
        if (initted)
                return;



Home | Main Index | Thread Index | Old Index