svn commit: r184679 - head/sys/net

Bjoern A. Zeeb bz at FreeBSD.org
Wed Nov 5 03:39:46 PST 2008


Author: bz
Date: Wed Nov  5 11:39:46 2008
New Revision: 184679
URL: http://svn.freebsd.org/changeset/base/184679

Log:
  Make tun(4) compile without INET.
  
  MFC after:	2 months

Modified:
  head/sys/net/if_tun.c

Modified: head/sys/net/if_tun.c
==============================================================================
--- head/sys/net/if_tun.c	Wed Nov  5 11:37:26 2008	(r184678)
+++ head/sys/net/if_tun.c	Wed Nov  5 11:39:46 2008	(r184679)
@@ -494,8 +494,10 @@ tunclose(struct cdev *dev, int foo, int 
 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");


More information about the svn-src-head mailing list