diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 50006f080608..28c91de32974 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");