diff options
author | kan <kan@FreeBSD.org> | 2007-04-06 19:45:17 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2007-04-06 19:45:17 +0000 |
commit | dd704902afb398e42ae879b94546d0099a3b8812 (patch) | |
tree | b804a9784b2b0a719363841ecbf5c3c1e34dadd0 | |
parent | bbfc500036ac3c82c3e48fa6113935a8dcc74f1a (diff) | |
download | FreeBSD-src-dd704902afb398e42ae879b94546d0099a3b8812.zip FreeBSD-src-dd704902afb398e42ae879b94546d0099a3b8812.tar.gz |
__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.
-rw-r--r-- | lib/libc/resolv/Symbol.map | 1 | ||||
-rw-r--r-- | lib/libc/resolv/res_debug.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/resolv/Symbol.map b/lib/libc/resolv/Symbol.map index 068ce83..90d8137 100644 --- a/lib/libc/resolv/Symbol.map +++ b/lib/libc/resolv/Symbol.map @@ -29,6 +29,7 @@ FBSD_1.0 { __p_cert_syms; __p_class_syms; __p_key_syms; + __p_rcode_syms; __p_type_syms; __sym_ston; __sym_ntos; 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"}, |