Date: Tue, 2 Oct 2012 05:32:23 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r305148 - in head/net/xorp: . files Message-ID: <201210020532.q925WNwd076569@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210020532.q925WNwd076569>