summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-11-07 08:59:35 +0000
committersimokawa <simokawa@FreeBSD.org>2003-11-07 08:59:35 +0000
commit377c274717178caa65355544852f23304882a16b (patch)
tree893c799863a568acd513f9f6d9ce6aeeb7e3619b
parent7bff69733d7404b438af1ff63ec1640f5e3b7e80 (diff)
downloadFreeBSD-src-377c274717178caa65355544852f23304882a16b.zip
FreeBSD-src-377c274717178caa65355544852f23304882a16b.tar.gz
Add compatibility for 4-stable.
Submitted by: imura
-rw-r--r--sys/dev/firewire/if_fwe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c
index 81603e1..c14e5dd 100644
--- a/sys/dev/firewire/if_fwe.c
+++ b/sys/dev/firewire/if_fwe.c
@@ -186,7 +186,12 @@ fwe_attach(device_t dev)
ifp = &fwe->fwe_if;
ifp->if_softc = &fwe->eth_softc;
+#if __FreeBSD_version >= 501113
if_initname(ifp, device_get_name(dev), unit);
+#else
+ ifp->if_unit = unit;
+ ifp->if_name = "fwe";
+#endif
ifp->if_init = fwe_init;
ifp->if_output = ether_output;
ifp->if_start = fwe_start;
OpenPOWER on IntegriCloud