diff options
author | bz <bz@FreeBSD.org> | 2008-11-05 11:39:46 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-05 11:39:46 +0000 |
commit | 39bf4d650f37dd21e879be4d9949f666dda7b05b (patch) | |
tree | 87666ee3a5db5d3173f4e95d135da36f293449d2 /sys | |
parent | f83635a6ee1bfb033527668f641353a193daa86e (diff) | |
download | FreeBSD-src-39bf4d650f37dd21e879be4d9949f666dda7b05b.zip FreeBSD-src-39bf4d650f37dd21e879be4d9949f666dda7b05b.tar.gz |
Make tun(4) compile without INET.
MFC after: 2 months
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 50006f0..28c91de 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -494,8 +494,10 @@ tunclose(struct cdev *dev, int foo, int bar, struct thread *td) static int tuninit(struct ifnet *ifp) { +#ifdef INET struct tun_softc *tp = ifp->if_softc; struct ifaddr *ifa; +#endif int error = 0; TUNDEBUG(ifp, "tuninit\n"); |