From owner-svn-ports-head@FreeBSD.ORG Tue Oct 2 05:32:24 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2FE0D106564A; Tue, 2 Oct 2012 05:32:23 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D16DF8FC08; Tue, 2 Oct 2012 05:32:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q925WNj4076572; Tue, 2 Oct 2012 05:32:23 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q925WNwd076569; Tue, 2 Oct 2012 05:32:23 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201210020532.q925WNwd076569@svn.freebsd.org> From: Kevin Lo Date: Tue, 2 Oct 2012 05:32:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r305148 - in head/net/xorp: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 05:32:24 -0000 Author: kevlo Date: Tue Oct 2 05:32:23 2012 New Revision: 305148 URL: http://svn.freebsd.org/changeset/ports/305148 Log: Fix build on 10-CURRENT. Added: head/net/xorp/files/patch-libxorp-utility.h (contents, props changed) Modified: head/net/xorp/Makefile Modified: head/net/xorp/Makefile ============================================================================== --- head/net/xorp/Makefile Tue Oct 2 04:15:01 2012 (r305147) +++ head/net/xorp/Makefile Tue Oct 2 05:32:23 2012 (r305148) @@ -7,6 +7,7 @@ PORTNAME= xorp PORTVERSION= 1.6 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.xorp.org/releases/${PORTVERSION}/ \ http://www2.xorp.org/releases/${PORTVERSION}/ \ Added: head/net/xorp/files/patch-libxorp-utility.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-libxorp-utility.h Tue Oct 2 05:32:23 2012 (r305148) @@ -0,0 +1,20 @@ +--- libxorp/utility.h.orig 2012-10-01 17:45:19.000000000 +0800 ++++ libxorp/utility.h 2012-10-01 17:47:34.000000000 +0800 +@@ -31,7 +31,7 @@ + * Compile time assertion. + */ + #ifndef static_assert +-#define static_assert(a) switch (a) case 0: case (a): ++#define static_assert(a) ((void)sizeof(int[(a) ? 1 : -1])) + #endif /* static_assert */ + + /* +@@ -42,7 +42,7 @@ + #ifdef UNUSED + # undef UNUSED + #endif /* UNUSED */ +-#define UNUSED(var) static_assert(sizeof(var) != 0) ++#define UNUSED(var) ((void)var) + + #ifdef __cplusplus + #define cstring(s) (s).str().c_str()