summaryrefslogtreecommitdiff
path: root/malloc/thread-freeres.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-02-22 01:58:06 +0000
committerRoland McGrath <roland@gnu.org>2003-02-22 01:58:06 +0000
commit2a3d906e217757e3cbb4f3c089a09a4cb9cb8f75 (patch)
tree967a444f29bb65b4c4b36b66f1b6a36c81b5359e /malloc/thread-freeres.c
parente8783fd53d5d673eab4500d2cac82601f2f802e0 (diff)
* malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
* sunrpc/rpc_thread.c: Likewise for text_set_element use. (__rpc_thread_destroy): Add it to __libc_subfreeres too. * include/resolv.h: Add libc_hidden_proto for __res_nclose. * resolv/res_init.c (__res_nclose): Add libc_hidden_def. (res_thread_freeres): New function, on __libc_thread_subfreeres and __libc_subfreeres. * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres. * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
Diffstat (limited to 'malloc/thread-freeres.c')
-rw-r--r--malloc/thread-freeres.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/malloc/thread-freeres.c b/malloc/thread-freeres.c
index 75d3014d6e..cc9db39202 100644
--- a/malloc/thread-freeres.c
+++ b/malloc/thread-freeres.c
@@ -21,6 +21,7 @@
#include <libc-internal.h>
#include <set-hooks.h>
+#ifdef _LIBC_REENTRANT
DEFINE_HOOK (__libc_thread_subfreeres, (void));
void __attribute__ ((section ("__libc_thread_freeres_fn")))
@@ -28,3 +29,4 @@ __libc_thread_freeres (void)
{
RUN_HOOK (__libc_thread_subfreeres, ());
}
+#endif