diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2007-09-06 12:04:26 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2007-09-06 12:04:26 +0000 |
| commit | ad0a5e14705ac22ac3bb4de8c8e89107f82eb738 (patch) | |
| tree | c230867d622b011c8d8570356d92c5b5c4bed854 /bind-9.4-_res_errno.patch | |
| parent | 1b235e12a4f77b46f07e19f77c398429f10c5685 (diff) | |
- patches bind-9.4-2119_revert.patch and libbind-9.3.1rc1-fix_h_errno.patchbind-9_4_2-0_3_b1_fc7
are obsoleted by bind-9.4-_res_errno.patch
Diffstat (limited to 'bind-9.4-_res_errno.patch')
| -rw-r--r-- | bind-9.4-_res_errno.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bind-9.4-_res_errno.patch b/bind-9.4-_res_errno.patch new file mode 100644 index 0000000..b325eb1 --- /dev/null +++ b/bind-9.4-_res_errno.patch @@ -0,0 +1,33 @@ +Written-by: Mark Andrews <Mark_Andrews isc org> +Reviewed-by: Adam Tkac <atkac redhat com> + +diff -up bind-9.5.0a6/lib/bind/resolv/res_data.c._res_errno bind-9.5.0a6/lib/bind/resolv/res_data.c +--- bind-9.5.0a6/lib/bind/resolv/res_data.c._res_errno 2007-09-06 09:26:29.000000000 +0200 ++++ bind-9.5.0a6/lib/bind/resolv/res_data.c 2007-09-06 09:28:14.000000000 +0200 +@@ -40,7 +40,6 @@ static const char rcsid[] = "$Id: res_da + #include <unistd.h> + + #include "port_after.h" +-#undef _res + + const char *_res_opcodes[] = { + "QUERY", +@@ -70,6 +69,7 @@ const char *_res_sectioncodes[] = { + }; + #endif + ++#undef _res + #ifndef __BIND_NOSTATIC + struct __res_state _res + # if defined(__BIND_RES_TEXT) +@@ -77,6 +77,10 @@ struct __res_state _res + # endif + ; + ++#if defined(DO_PTHREADS) || defined(__linux) ++#define _res (*__res_state()) ++#endif ++ + /* Proto. */ + + int res_ourserver_p(const res_state, const struct sockaddr_in *); |
