diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-26 16:40:27 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-26 16:40:27 +0000 |
commit | ddec0814a90aab43395efee32a9b732b7a5143e5 (patch) | |
tree | abf907391157200f8f00365ac6bde01160f8ac5f /toolchain/musl/patches-0.9.9/003-in_h_are_4_equal_parenthesis.patch | |
parent | 7c5c45c133da8274bbdf9dc9c6c98f0e6c4a84c9 (diff) |
toolchain/musl: add support for 0.9.9
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35815 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.patch | 12 |
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 000000000..41aaf5d3d --- /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)) + |