From owner-svn-src-all@FreeBSD.ORG Wed Nov 5 11:39:46 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95F0F1065676; Wed, 5 Nov 2008 11:39:46 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 853558FC30; Wed, 5 Nov 2008 11:39:46 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mA5BdkJq025796; Wed, 5 Nov 2008 11:39:46 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mA5Bdkts025795; Wed, 5 Nov 2008 11:39:46 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200811051139.mA5Bdkts025795@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 5 Nov 2008 11:39:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184679 - head/sys/net X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 11:39:46 -0000 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");