[ifxos] (oops - second try) fixed autoconf detection for 2.6.33 kernel
[openwrt.git] / package / busybox / patches / 000-upstream-dnsd.patch
1 --- a/include/platform.h
2 +++ b/include/platform.h
3 @@ -291,10 +291,12 @@ typedef unsigned smalluint;
4 #if 1 /* if needed: !defined(arch1) && !defined(arch2) */
5 # define ALIGN1 __attribute__((aligned(1)))
6 # define ALIGN2 __attribute__((aligned(2)))
7 +# define ALIGN4 __attribute__((aligned(4)))
8 #else
9 /* Arches which MUST have 2 or 4 byte alignment for everything are here */
10 # define ALIGN1
11 # define ALIGN2
12 +# define ALIGN4
13 #endif
14
15
16 --- a/networking/dnsd.c
17 +++ b/networking/dnsd.c
18 @@ -459,7 +459,8 @@ int dnsd_main(int argc UNUSED_PARAM, cha
19 unsigned lsa_size;
20 int udps, opts;
21 uint16_t port = 53;
22 - uint8_t buf[MAX_PACK_LEN + 1];
23 + /* Ensure buf is 32bit aligned (we need 16bit, but 32bit can't hurt) */
24 + uint8_t buf[MAX_PACK_LEN + 1] ALIGN4;
25
26 opts = getopt32(argv, "vi:c:t:p:d", &listen_interface, &fileconf, &sttl, &sport);
27 //if (opts & 0x1) // -v
This page took 0.040058 seconds and 5 git commands to generate.