Module Name:    src
Committed By:   taca
Date:           Sun Jan 26 15:49:25 UTC 2014

Modified Files:
        src/sys/arch/x86/x86: consinit.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/x86/x86/consinit.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/x86/x86/consinit.c
diff -u src/sys/arch/x86/x86/consinit.c:1.25 src/sys/arch/x86/x86/consinit.c:1.26
--- src/sys/arch/x86/x86/consinit.c:1.25	Sun Jan 26 10:54:24 2014
+++ src/sys/arch/x86/x86/consinit.c	Sun Jan 26 15:49:25 2014
@@ -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 @@ consinit(void)
 	const struct btinfo_console *consinfo;
 	const struct btinfo_framebuffer *fbinfo;
 	static int initted;
+#if (NCOM > 0)
 	int rv;
+#endif
 
 	if (initted)
 		return;

Reply via email to