summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2002-02-03 01:51:00 +0000
committermickey <mickey@openbsd.org>2002-02-03 01:51:00 +0000
commit71cad267cd1770bc66dfa75af9911ea838d9aaf1 (patch)
treedadac3aeddbb3e4c9ca3216c731b973b2c3c5acf
parentdefer non-0 units to keep iface order right (diff)
downloadwireguard-openbsd-71cad267cd1770bc66dfa75af9911ea838d9aaf1.tar.xz
wireguard-openbsd-71cad267cd1770bc66dfa75af9911ea838d9aaf1.zip
only check for serial console if any compiled
-rw-r--r--sys/arch/hppa/dev/pdc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c
index d5386c9ae20..9112a389f64 100644
--- a/sys/arch/hppa/dev/pdc.c
+++ b/sys/arch/hppa/dev/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.17 2002/02/01 08:48:22 mickey Exp $ */
+/* $OpenBSD: pdc.c,v 1.18 2002/02/03 01:51:00 mickey Exp $ */
/*
* Copyright (c) 1998-2002 Michael Shalayeff
@@ -104,6 +104,8 @@ pdc_init()
cn_tab = &constab[0];
/* setup the console */
+#include "com.h"
+#if NCOM > 0
if (PAGE0->mem_cons.pz_class == PCL_DUPLEX) {
struct pz_device *pzd = &PAGE0->mem_cons;
extern int comdefaultrate;
@@ -123,7 +125,7 @@ pdc_init()
/* TODO detect the baud rate from layer[0] */
comdefaultrate = 9600;
}
-
+#endif
}
int