1 diff -urN dnsmasq-2.6/src/config.h dnsmasq-2.6-new/src/config.h
2 --- dnsmasq-2.6/src/config.h 2004-04-03 14:03:39.000000000 -0600
3 +++ dnsmasq-2.6-new/src/config.h 2004-04-03 19:56:01.000000000 -0600
5 /* We assume that systems which don't have IPv6
6 headers don't have ntop and pton either */
8 +#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_IPV6__)
13 #if defined(INET6_ADDRSTRLEN) && !defined(NO_IPV6)
15 # define ADDRSTRLEN INET6_ADDRSTRLEN
17 /* platform dependent options. */
19 /* Must preceed __linux__ since uClinux defines __linux__ too. */
20 -#if defined(__uClinux__) || defined(__UCLIBC__)
21 +#if defined(__uClinux__)
22 #undef HAVE_LINUX_IPV6_PROC
23 #define HAVE_GETOPT_LONG
24 #undef HAVE_ARC4RANDOM
29 +#elif defined(__linux__) && defined(__UCLIBC__)
30 +# define HAVE_LINUX_IPV6_PROC
31 +# if defined(__UCLIBC_HAS_GNU_GETOPT__) || \
32 + ((__UCLIBC_MAJOR__==0) && (__UCLIBC_MINOR__==9) && (__UCLIBC_SUBLEVEL__<21))
33 +# define HAVE_GETOPT_LONG
35 +# undef HAVE_GETOPT_LONG
37 +#undef HAVE_ARC4RANDOM
39 +#define HAVE_DEV_URANDOM
40 +#define HAVE_DEV_RANDOM
41 +#undef HAVE_SOCKADDR_SA_LEN
43 +#if !defined(__ARCH_HAS_MMU__)
47 /* libc5 - must precede __linux__ too */
48 /* Note to build a libc5 binary on a modern Debian system:
49 install the packages altgcc libc5 and libc5-altdev