permit compiling kernel without pccom or com
authorderaadt <deraadt@openbsd.org>
Sun, 16 Apr 2000 05:07:29 +0000 (05:07 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 16 Apr 2000 05:07:29 +0000 (05:07 +0000)
sys/arch/i386/i386/bios.c

index 87d6331..39a43f3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: bios.c,v 1.26 2000/02/18 17:10:09 mickey Exp $        */
+/*     $OpenBSD: bios.c,v 1.27 2000/04/16 05:07:29 deraadt Exp $       */
 
 /*
  * Copyright (c) 1997-1999 Michael Shalayeff
@@ -214,8 +214,12 @@ bios_getopt()
                        if (q->ba_size >= sizeof(bios_consdev_t))
                        {
                                bios_consdev_t *cdp = (bios_consdev_t*)q->ba_arg;
+#include "com.h"
+#include "pccom.h"
+#if NCOM + NPCCOM > 0
                                extern int comdefaultrate; /* ic/com.c */
                                comdefaultrate = cdp->conspeed;
+#endif
                                cnset(cdp->consdev);
                        }
                        break;