From 2549a9fdee9ff074485c0e479b2fa7fc09767067 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 18 Oct 1996 15:48:11 +0000 Subject: -Wall happiness --- sys/arch/i386/isa/spkr.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sys/arch/i386/isa/spkr.c b/sys/arch/i386/isa/spkr.c index fb09da6d567..43e048bbc7f 100644 --- a/sys/arch/i386/isa/spkr.c +++ b/sys/arch/i386/isa/spkr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spkr.c,v 1.10 1996/07/27 11:16:10 deraadt Exp $ */ +/* $OpenBSD: spkr.c,v 1.11 1996/10/18 15:48:10 mickey Exp $ */ /* $NetBSD: spkr.c,v 1.23.4.1 1996/07/15 22:15:11 fvdl Exp $ */ /* @@ -436,7 +436,14 @@ spkrprobe (parent, match, aux) void *aux; { struct cfdata *cf = match; - extern struct cfattach pc_ca, vt_ca; +#include "vt.h" +#include "pc.h" +#if NPC > 0 + extern struct cfattach pc_ca; +#endif +#if NVT > 0 + extern struct cfattach vt_ca; +#endif /* * We only attach to the keyboard controller via * the console drivers. (We really wish we could be the @@ -444,8 +451,6 @@ spkrprobe (parent, match, aux) */ if ((parent == NULL) || (parent->dv_cfdata == NULL) || ( -#include "vt.h" -#include "pc.h" #if NPC > 0 (parent->dv_cfdata->cf_attach != &pc_ca) #endif -- cgit v1.2.3