Make tun(4) compile without INET.

MFC after:	2 months
This commit is contained in:
Bjoern A. Zeeb 2008-11-05 11:39:46 +00:00
parent e0de57f9ea
commit 063acb9ac1

@ -494,8 +494,10 @@ tunclose(struct cdev *dev, int foo, int bar, struct thread *td)
static int static int
tuninit(struct ifnet *ifp) tuninit(struct ifnet *ifp)
{ {
#ifdef INET
struct tun_softc *tp = ifp->if_softc; struct tun_softc *tp = ifp->if_softc;
struct ifaddr *ifa; struct ifaddr *ifa;
#endif
int error = 0; int error = 0;
TUNDEBUG(ifp, "tuninit\n"); TUNDEBUG(ifp, "tuninit\n");