toolchain/musl: add support for 0.9.9
[openwrt/staging/chunkeey.git] / toolchain / musl / patches-0.9.9 / 003-in_h_are_4_equal_parenthesis.patch
1 diff -urN musl-0.9.8/include/netinet/in.h musl-0.9.8.new/include/netinet/in.h
2 --- musl-0.9.8/include/netinet/in.h 2013-01-25 14:14:07.000000000 +0100
3 +++ musl-0.9.8.new/include/netinet/in.h 2013-01-29 21:43:46.843051396 +0100
4 @@ -141,7 +141,7 @@
5 (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0xe))
6
7 #define __ARE_4_EQUAL(a,b) \
8 - (!( 0[a]-0[b] | 1[a]-1[b] | 2[a]-2[b] | 3[a]-3[b] ))
9 + (!( (0[a]-0[b]) | (1[a]-1[b]) | (2[a]-2[b]) | (3[a]-3[b]) ))
10 #define IN6_ARE_ADDR_EQUAL(a,b) \
11 __ARE_4_EQUAL((const uint32_t *)(a), (const uint32_t *)(b))
12