diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-02-03 01:51:01 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-02-03 01:51:01 +0000 |
commit | 92a133a1e7124c50377f76dffed4fd0af08ee7ff (patch) | |
tree | 492784be928d4fff7d83da3d2fddc1ba42ede1ff /sys | |
parent | c6e697a7ecec2fdc3719292a9e71e7b126efe2ae (diff) |
only check for serial console if any compiled
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/dev/pdc.c | 6 |
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 |