From b6bf472318878de489cfe4117d5121a1e71afa51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Fri, 29 Dec 1995 22:17:12 +0000 Subject: [PATCH] Fixed a bug with the ATAPI_STATIC option, so it compiles again. --- sys/i386/isa/wcd.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c index 0eef83a6c30d..933a73b2f7bc 100644 --- a/sys/i386/isa/wcd.c +++ b/sys/i386/isa/wcd.c @@ -56,8 +56,10 @@ static struct cdevsw wcd_cdevsw = seltrue, nommap, wcdstrategy, "wcd", &wcd_bdevsw, -1 }; - -static int wcdattach(struct atapi*, int, struct atapi_params*, int, struct kern_devconf*); +#ifndef ATAPI_STATIC +static +#endif +int wcdattach(struct atapi*, int, struct atapi_params*, int, struct kern_devconf*); #define NUNIT (NWDC*2) /* Max. number of devices */ #define UNIT(d) ((minor(d) >> 3) & 3) /* Unit part of minor device number */ @@ -278,7 +280,10 @@ static int wcd_goaway (struct kern_devconf *kdc, int force) return 0; } -static int +#ifndef ATAPI_STATIC +static +#endif +int wcdattach (struct atapi *ata, int unit, struct atapi_params *ap, int debug, struct kern_devconf *parent) {