Add compatibility for 4-stable.

Submitted by: imura
This commit is contained in:
Hidetoshi Shimokawa 2003-11-07 08:59:35 +00:00
parent 53c9e0f3aa
commit 34ea46a73b

View File

@ -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;