summaryrefslogtreecommitdiff
path: root/net/xorp/patches/patch-libxorp_ipv6.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/xorp/patches/patch-libxorp_ipv6.cc')
-rw-r--r--net/xorp/patches/patch-libxorp_ipv6.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/xorp/patches/patch-libxorp_ipv6.cc b/net/xorp/patches/patch-libxorp_ipv6.cc
new file mode 100644
index 00000000000..460b6071e33
--- /dev/null
+++ b/net/xorp/patches/patch-libxorp_ipv6.cc
@@ -0,0 +1,31 @@
+$NetBSD: patch-libxorp_ipv6.cc,v 1.1 2013/05/30 15:37:24 joerg Exp $
+
+--- libxorp/ipv6.cc.orig 2013-04-29 19:22:46.000000000 +0000
++++ libxorp/ipv6.cc
+@@ -223,7 +223,7 @@ IPv6
+ IPv6::operator<<(uint32_t ls) const
+ {
+ uint32_t tmp_addr[4];
+- static_assert(sizeof(_addr) == sizeof(tmp_addr));
++ my_static_assert(sizeof(_addr) == sizeof(tmp_addr));
+
+ // Shift the words, and at the same time convert them into host-order
+ switch (ls / 32) {
+@@ -278,7 +278,7 @@ IPv6
+ IPv6::operator>>(uint32_t rs) const
+ {
+ uint32_t tmp_addr[4];
+- static_assert(sizeof(_addr) == sizeof(tmp_addr));
++ my_static_assert(sizeof(_addr) == sizeof(tmp_addr));
+
+ // Shift the words, and at the same time convert them into host-order
+ switch (rs / 32) {
+@@ -333,7 +333,7 @@ bool
+ IPv6::operator<(const IPv6& other) const
+ {
+ int i;
+- static_assert(sizeof(_addr) == 16);
++ my_static_assert(sizeof(_addr) == 16);
+
+ for (i = 0; i < 3; i++) { // XXX: Loop ends intentionally at 3 not 4
+ if (_addr[i] != other._addr[i])