bahamut: fix compile with eglibc
[openwrt/svn-archive/archive.git] / net / bahamut / patches / 002-glibc_fix.patch
1 --- a/include/resolv.h
2 +++ b/include/resolv.h
3 @@ -62,7 +62,7 @@
4 #if ((__GNU_LIBRARY__ == 6) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 3))
5 # define MAXRESOLVSORT 10 /* number of net to sort on */
6
7 -struct __res_state {
8 +struct state {
9 int retrans; /* retransmition time interval */
10 int retry; /* number of times to retransmit */
11 u_long options; /* option flags - see below. */
12 @@ -81,12 +81,9 @@
13 struct in_addr addr;
14 u_int32_t mask;
15 } sort_list[MAXRESOLVSORT];
16 + unsigned short order[MAXSERVICES + 1]; /* search service order */
17 };
18
19 -typedef struct __res_state *res_state;
20 -
21 -extern struct __res_state *__res_state(void) __attribute__ ((__const__));
22 -#define _res (*__res_state())
23
24 #else
25
26 @@ -103,9 +100,10 @@
27 unsigned short order[MAXSERVICES + 1]; /* search service order */
28 };
29
30 -extern struct state _res;
31 #endif
32
33 +extern struct state _res;
34 +
35 extern char *p_cdname(), *p_rr(), *p_type(), *p_class(), *p_time();
36
37 #if ((__GNU_LIBRARY__ == 6) && (__GLIBC__ >=2) && (__GLIBC_MINOR__ >= 2))