From d78baf42dc48b6a2bee2b68e96d617b309769a98 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 12 Sep 2005 04:12:50 +0000 Subject: [PATCH] Since opti_detect is now only called on !PC98 machines, only declare and define there as well. This should fix the pc98 tinderbox. --- sys/dev/sound/isa/mss.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/sound/isa/mss.c b/sys/dev/sound/isa/mss.c index d69a32f7aa9..8c1ac50febb 100644 --- a/sys/dev/sound/isa/mss.c +++ b/sys/dev/sound/isa/mss.c @@ -92,7 +92,9 @@ static driver_intr_t mss_intr; /* prototypes for local functions */ static int mss_detect(device_t dev, struct mss_info *mss); +#ifndef PC98 static int opti_detect(device_t dev, struct mss_info *mss); +#endif static char *ymf_test(device_t dev, struct mss_info *mss); static void ad_unmute(struct mss_info *mss); @@ -1592,6 +1594,7 @@ no: return ENXIO; } +#ifndef PC98 static int opti_detect(device_t dev, struct mss_info *mss) { @@ -1637,6 +1640,7 @@ opti_detect(device_t dev, struct mss_info *mss) } return 0; } +#endif static char * ymf_test(device_t dev, struct mss_info *mss)