aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/resolv/res_data.c
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2007-12-03 15:07:58 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2007-12-03 15:07:58 +0000
commit4117715965534416fa304d20902d62bd83e56bd7 (patch)
tree84bdfa56b4fbe6aab82fb663080b3168d58c02bc /lib/libc/resolv/res_data.c
parentf3fd1dbd2ee0f02610d951d469eb1930ec6b5efa (diff)
Diffstat (limited to 'lib/libc/resolv/res_data.c')
-rw-r--r--lib/libc/resolv/res_data.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/resolv/res_data.c b/lib/libc/resolv/res_data.c
index e3dcbf04361e..736315cc4186 100644
--- a/lib/libc/resolv/res_data.c
+++ b/lib/libc/resolv/res_data.c
@@ -16,7 +16,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: res_data.c,v 1.3.18.1 2005/04/27 05:01:10 sra Exp $";
+static const char rcsid[] = "$Id: res_data.c,v 1.3.18.2 2007/09/14 05:35:47 marka Exp $";
#endif /* LIBC_SCCS and not lint */
#include "port_before.h"
@@ -40,7 +40,6 @@ static const char rcsid[] = "$Id: res_data.c,v 1.3.18.1 2005/04/27 05:01:10 sra
#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 *);