summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1995-12-29 22:17:12 +0000
committersos <sos@FreeBSD.org>1995-12-29 22:17:12 +0000
commit9ec9264def9220b678c84198aa37875e77aed0fb (patch)
treeac98105329308be4d6a1be0dcd5ec6548beb15e6 /sys
parent58acdd095c1ac25ac70f9992f1aca1b76d8acc9c (diff)
downloadFreeBSD-src-9ec9264def9220b678c84198aa37875e77aed0fb.zip
FreeBSD-src-9ec9264def9220b678c84198aa37875e77aed0fb.tar.gz
Fixed a bug with the ATAPI_STATIC option, so it compiles again.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/wcd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c
index 0eef83a..933a73b 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)
{
OpenPOWER on IntegriCloud