From dd704902afb398e42ae879b94546d0099a3b8812 Mon Sep 17 00:00:00 2001 From: kan Date: Fri, 6 Apr 2007 19:45:17 +0000 Subject: __p_rcode_syms is declared as external in resolv.conf, so it cannot be redeclared as static in res_debug.c. Make __p_rcode_syms global and add it to Symbol map. The rest of __p_??_syms are already global. Choice of FBSD_1.0 version for these debug symbols seems strange and should be revisited before symbol versioning is enabled for libc.so.7. --- lib/libc/resolv/res_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/resolv/res_debug.c') diff --git a/lib/libc/resolv/res_debug.c b/lib/libc/resolv/res_debug.c index a4787d9..80b5b94 100644 --- a/lib/libc/resolv/res_debug.c +++ b/lib/libc/resolv/res_debug.c @@ -468,7 +468,7 @@ const struct res_sym __p_type_syms[] = { /* * Names of DNS rcodes. */ -static const struct res_sym __p_rcode_syms[] = { +const struct res_sym __p_rcode_syms[] = { {ns_r_noerror, "NOERROR", "no error"}, {ns_r_formerr, "FORMERR", "format error"}, {ns_r_servfail, "SERVFAIL", "server failed"}, -- cgit v1.1