diff options
author | obrien <obrien@FreeBSD.org> | 2003-12-07 13:51:31 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-12-07 13:51:31 +0800 |
commit | d08a52bc1cb5d625f6489bd3194856b994c15656 (patch) | |
tree | acfa2fd45dda3503ad728b26b6c11891d05ebf69 /net/nvnet | |
parent | 008af7820e4941e72087575bcb2e7f4efc6d7469 (diff) | |
download | freebsd-ports-gnome-d08a52bc1cb5d625f6489bd3194856b994c15656.tar.gz freebsd-ports-gnome-d08a52bc1cb5d625f6489bd3194856b994c15656.tar.zst freebsd-ports-gnome-d08a52bc1cb5d625f6489bd3194856b994c15656.zip |
Handle 5.1-CURRENT after the if_xname change in struct ifnet.
Diffstat (limited to 'net/nvnet')
-rw-r--r-- | net/nvnet/files/patch-if_nv.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/nvnet/files/patch-if_nv.c b/net/nvnet/files/patch-if_nv.c new file mode 100644 index 000000000000..c1e113df9e5a --- /dev/null +++ b/net/nvnet/files/patch-if_nv.c @@ -0,0 +1,16 @@ +--- src/if_nv.c.orig Sat Nov 8 05:03:00 2003 ++++ src/if_nv.c Sat Dec 6 21:50:47 2003 +@@ -457,8 +457,13 @@ + /* Setup interface parameters */ + ifp = &sc->sc_if; + ifp->if_softc = sc; ++#if __FreeBSD_version < 501113 + ifp->if_unit = unit; + ifp->if_name = "nv"; ++#else ++ ifp->if_dunit = unit; ++ ifp->if_dname = "nv"; ++#endif + ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; + ifp->if_ioctl = nv_ioctl; + ifp->if_output = ether_output; |