summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2005-03-27 10:35:07 +0000
committerwpaul <wpaul@FreeBSD.org>2005-03-27 10:35:07 +0000
commit74837aa85b0d646e89c04c798b9dcb89c2742630 (patch)
tree9d990a6bd6fb56418c8731c931ab5eb0f6efab2e /sys/dev/if_ndis
parente41bbf92198a45401312c16cca217f020467f3d8 (diff)
downloadFreeBSD-src-74837aa85b0d646e89c04c798b9dcb89c2742630.zip
FreeBSD-src-74837aa85b0d646e89c04c798b9dcb89c2742630.tar.gz
Argh. PCI resource list became an STAILQ instead of an SLIST. Try to
deal with this while maintaining backards source compatibility with stable.
Diffstat (limited to 'sys/dev/if_ndis')
-rw-r--r--sys/dev/if_ndis/if_ndis_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/if_ndis/if_ndis_pci.c b/sys/dev/if_ndis/if_ndis_pci.c
index 6222efe..08109e6 100644
--- a/sys/dev/if_ndis/if_ndis_pci.c
+++ b/sys/dev/if_ndis/if_ndis_pci.c
@@ -196,7 +196,11 @@ ndis_attach_pci(dev)
rl = BUS_GET_RESOURCE_LIST(device_get_parent(dev), dev);
if (rl != NULL) {
+#if __FreeBSD_version < 600022
+ SLIST_FOREACH(rle, rl, link) {
+#else
STAILQ_FOREACH(rle, rl, link) {
+#endif
switch (rle->type) {
case SYS_RES_IOPORT:
sc->ndis_io_rid = rle->rid;
OpenPOWER on IntegriCloud