summaryrefslogtreecommitdiff
path: root/net/xorp
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-09-28 05:47:31 +0000
committerdholland <dholland@pkgsrc.org>2012-09-28 05:47:31 +0000
commit1896bf9184c264b855cdcac196bf17e33b621220 (patch)
treeaaa9d7839a1e8e0ac8d7e423bb9cf7099db79cb7 /net/xorp
parent97488bd7b882cf73fd88eab46a8893ffe98ac17e (diff)
downloadpkgsrc-1896bf9184c264b855cdcac196bf17e33b621220.tar.gz
Fix invalid cpp usage (hi joerg) and thus unbreak the build with gcc.
Diffstat (limited to 'net/xorp')
-rw-r--r--net/xorp/distinfo4
-rw-r--r--net/xorp/patches/patch-libxorp_utility.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/net/xorp/distinfo b/net/xorp/distinfo
index e6f8f5309d7..7c01d4249ad 100644
--- a/net/xorp/distinfo
+++ b/net/xorp/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2012/07/03 17:36:10 joerg Exp $
+$NetBSD: distinfo,v 1.19 2012/09/28 05:47:31 dholland Exp $
SHA1 (xorp-1.6.tar.gz) = 366d32068ed76b8ec69958b601d4fbde61ef4cbb
RMD160 (xorp-1.6.tar.gz) = 32b3f6d03defc816ed983088e61b5e808de17f98
@@ -25,7 +25,7 @@ SHA1 (patch-libxorp_safe__callback__obj.hh) = a5019173b864829dd96f55c92d831dd98a
SHA1 (patch-libxorp_test__main.hh) = 9893f1276066f16fe92b5787e9235484882cbfe9
SHA1 (patch-libxorp_transaction.hh) = f6fbcc929610f48116590fd28a8df7ed30280856
SHA1 (patch-libxorp_trie.hh) = eab5e4e232fb3bd60d9c3632c47bc4d89f432ed8
-SHA1 (patch-libxorp_utility.h) = dcd6dd63d82cbdbc47750422430cdd3f08f45497
+SHA1 (patch-libxorp_utility.h) = d9d929e0a900f7f3dcfa680982539c2881940223
SHA1 (patch-libxorp_xorp.h) = 09fa420872903bdff321decd020810588668c2a2
SHA1 (patch-ospf_peer.cc) = c5220d6ee8966ded9ebc168092c5c41a32ee6042
SHA1 (patch-pim_pim__bsr.cc) = 67ebcd67efeb421327de9847803213f826a2c5cc
diff --git a/net/xorp/patches/patch-libxorp_utility.h b/net/xorp/patches/patch-libxorp_utility.h
index 85ee5516d74..fea73136b44 100644
--- a/net/xorp/patches/patch-libxorp_utility.h
+++ b/net/xorp/patches/patch-libxorp_utility.h
@@ -1,4 +1,4 @@
-$NetBSD: patch-libxorp_utility.h,v 1.1 2012/07/03 17:36:10 joerg Exp $
+$NetBSD: patch-libxorp_utility.h,v 1.2 2012/09/28 05:47:32 dholland Exp $
--- libxorp/utility.h.orig 2009-01-05 18:30:58.000000000 +0000
+++ libxorp/utility.h
@@ -7,7 +7,7 @@ $NetBSD: patch-libxorp_utility.h,v 1.1 2012/07/03 17:36:10 joerg Exp $
*/
#ifndef static_assert
-#define static_assert(a) switch (a) case 0: case (a):
-+#define static_assert(a) typedef char static_assertion ## __LINE__[(a) ? 1 : -1]
++#define static_assert(a) ((void)sizeof(int[(a) ? 1 : -1]))
#endif /* static_assert */
/*
@@ -16,7 +16,7 @@ $NetBSD: patch-libxorp_utility.h,v 1.1 2012/07/03 17:36:10 joerg Exp $
# undef UNUSED
#endif /* UNUSED */
-#define UNUSED(var) static_assert(sizeof(var) != 0)
-+#define UNUSED(var) (void)var
++#define UNUSED(var) ((void)var)
#ifdef __cplusplus
#define cstring(s) (s).str().c_str()