From owner-svn-ports-all@FreeBSD.ORG Thu Feb 14 05:33:04 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BA4A5C11; Thu, 14 Feb 2013 05:33:04 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id AC5C06F0; Thu, 14 Feb 2013 05:33:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1E5X488075330; Thu, 14 Feb 2013 05:33:04 GMT (envelope-from cy@svn.freebsd.org) Received: (from cy@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1E5X48s075328; Thu, 14 Feb 2013 05:33:04 GMT (envelope-from cy@svn.freebsd.org) Message-Id: <201302140533.r1E5X48s075328@svn.freebsd.org> From: Cy Schubert Date: Thu, 14 Feb 2013 05:33:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312193 - in head/net/vtun: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 05:33:04 -0000 Author: cy Date: Thu Feb 14 05:33:03 2013 New Revision: 312193 URL: http://svnweb.freebsd.org/changeset/ports/312193 Log: Fix PR 172204 (failure to build using CLANG). PR: 172204 Added: head/net/vtun/files/extra-cfg_file.y (contents, props changed) Modified: head/net/vtun/Makefile Modified: head/net/vtun/Makefile ============================================================================== --- head/net/vtun/Makefile Thu Feb 14 05:10:09 2013 (r312192) +++ head/net/vtun/Makefile Thu Feb 14 05:33:03 2013 (r312193) @@ -30,9 +30,15 @@ ALL_TARGET= vtund DOCS= ChangeLog Credits FAQ README README.LZO README.Setup \ README.Shaper TODO +.include + +.if ${CC} == "clang" || ${CXX} == "clang++" || ${OSVERSION} >= 1000026 +EXTRA_PATCHES+= ${FILESDIR}/extra-cfg_file.y +.endif + .if defined(VTUN_EXTENDED_MODE) # Obtained from http://home.jp.FreeBSD.org/~simokawa/vtun-v6.html -EXTRA_PATCHES= ${FILESDIR}/extra-tun_dev.c +EXTRA_PATCHES+= ${FILESDIR}/extra-tun_dev.c .endif post-install: @@ -45,4 +51,4 @@ post-install: .endfor .endif -.include +.include Added: head/net/vtun/files/extra-cfg_file.y ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/vtun/files/extra-cfg_file.y Thu Feb 14 05:33:03 2013 (r312193) @@ -0,0 +1,11 @@ +--- cfg_file.y.orig 2012-07-09 09:01:08.000000000 +0800 ++++ cfg_file.y 2013-02-12 11:33:52.000000000 +0800 +@@ -609,7 +609,7 @@ + } + + /* Clear the VTUN_NAT_HACK flag which are not relevant to the current operation mode */ +-inline void clear_nat_hack_flags(int svr) ++void clear_nat_hack_flags(int svr) + { + if (svr) + llist_trav(&host_list,clear_nat_hack_server,NULL);