From 063acb9ac16e42b349d9dc8b35e4bb2bc4ba48d1 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 5 Nov 2008 11:39:46 +0000 Subject: [PATCH] Make tun(4) compile without INET. MFC after: 2 months --- sys/net/if_tun.c | 2 ++ 1 file changed, 2 insertions(+) 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");