aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-02-26 16:40:27 +0000
committerFlorian Fainelli <florian@openwrt.org>2013-02-26 16:40:27 +0000
commit5a0f4a89eb251c3929ae3b5e0823e77c869bde63 (patch)
tree5dcdcb2c9ea781c1b4377766f88c518bea7b2f26 /toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch
parent10c38f50a061a2c7ac233e2f78bdfc5b53989f6b (diff)
downloadupstream-5a0f4a89eb251c3929ae3b5e0823e77c869bde63.tar.gz
upstream-5a0f4a89eb251c3929ae3b5e0823e77c869bde63.tar.bz2
upstream-5a0f4a89eb251c3929ae3b5e0823e77c869bde63.zip
toolchain/musl: add support for 0.9.9
Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 35815
Diffstat (limited to 'toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch')
-rw-r--r--toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch b/toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch
new file mode 100644
index 0000000000..41aaf5d3da
--- /dev/null
+++ b/toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch
@@ -0,0 +1,12 @@
+diff -urN musl-0.9.8/include/netinet/in.h musl-0.9.8.new/include/netinet/in.h
+--- musl-0.9.8/include/netinet/in.h 2013-01-25 14:14:07.000000000 +0100
++++ musl-0.9.8.new/include/netinet/in.h 2013-01-29 21:43:46.843051396 +0100
+@@ -141,7 +141,7 @@
+ (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0xe))
+
+ #define __ARE_4_EQUAL(a,b) \
+- (!( 0[a]-0[b] | 1[a]-1[b] | 2[a]-2[b] | 3[a]-3[b] ))
++ (!( (0[a]-0[b]) | (1[a]-1[b]) | (2[a]-2[b]) | (3[a]-3[b]) ))
+ #define IN6_ARE_ADDR_EQUAL(a,b) \
+ __ARE_4_EQUAL((const uint32_t *)(a), (const uint32_t *)(b))
+