svn commit: r305148 - in head/net/xorp: . files
Kevin Lo
kevlo at FreeBSD.org
Tue Oct 2 05:32:24 UTC 2012
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()
More information about the svn-ports-all
mailing list