summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-09-01 05:03:42 +0000
committermjacob <mjacob@FreeBSD.org>2006-09-01 05:03:42 +0000
commitccda04f5c0e9b4629d6b1ccd904b042a1ec870c9 (patch)
tree02077e47a05eea3bbc8b5e44dbde0473e9ebd7af /sys
parent3d2ffbe140b1cf69d367f982063f5839f87ea784 (diff)
downloadFreeBSD-src-ccda04f5c0e9b4629d6b1ccd904b042a1ec870c9.zip
FreeBSD-src-ccda04f5c0e9b4629d6b1ccd904b042a1ec870c9.tar.gz
More ispfwfunc definitions funnies which break pre-7.0 builds.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp_freebsd.h4
-rw-r--r--sys/dev/isp/isp_pci.c1
-rw-r--r--sys/dev/isp/isp_sbus.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index 02c0e96..6502dea 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -97,6 +97,10 @@
#endif
#endif
+#if __FreeBSD_version < 700000
+typedef void ispfwfunc(int, int, int, uint16_t **);
+#endif
+
#ifdef ISP_TARGET_MODE
#define ISP_TARGET_FUNCTIONS 1
#define ATPDPSIZE 256
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index 2132b4e..7ea7dbf 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -337,7 +337,6 @@ DRIVER_MODULE(isp, pci, isp_pci_driver, isp_devclass, 0, 0);
MODULE_DEPEND(isp, ispfw, 1, 1, 1);
MODULE_DEPEND(isp, firmware, 1, 1, 1);
#else
-typedef void ispfwfunc(int, int, int, uint16_t **);
extern ispfwfunc *isp_get_firmware_p;
#endif
diff --git a/sys/dev/isp/isp_sbus.c b/sys/dev/isp/isp_sbus.c
index 32e83a5..c8b88fc 100644
--- a/sys/dev/isp/isp_sbus.c
+++ b/sys/dev/isp/isp_sbus.c
@@ -114,7 +114,6 @@ DRIVER_MODULE(isp, sbus, isp_sbus_driver, isp_devclass, 0, 0);
#if __FreeBSD_version >= 700000
MODULE_DEPEND(isp, firmware, 1, 1, 1);
#else
-typedef void ispfwfunc(int, int, int, uint16_t **);
extern ispfwfunc *isp_get_firmware_p;
#endif
OpenPOWER on IntegriCloud