diff options
author | Petr Vorel <pvorel@suse.cz> | 2020-07-13 19:36:35 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-07-13 19:36:35 +0200 |
commit | 5500cdba4018ddbda7909bc7f4f9718610b43cf0 (patch) | |
tree | b7b3e48b06eb294cdac28b2828d97d94a028429e /malloc/thread-freeres.c | |
parent | 3486924dc749d87ca7e5983b59baab474c6808a8 (diff) | |
download | glibc-5500cdba4018ddbda7909bc7f4f9718610b43cf0.tar.gz glibc-5500cdba4018ddbda7909bc7f4f9718610b43cf0.tar.xz glibc-5500cdba4018ddbda7909bc7f4f9718610b43cf0.zip |
Remove --enable-obsolete-rpc configure flag
Sun RPC was removed from glibc. This includes rpcgen program, librpcsvc, and Sun RPC headers. Also test for bug #20790 was removed (test for rpcgen). Backward compatibility for old programs is kept only for architectures and ABIs that have been added in or before version 2.28. libtirpc is mature enough, librpcsvc and rpcgen are provided in rpcsvc-proto project. NOTE: libnsl code depends on Sun RPC (installed libnsl headers use installed Sun RPC headers), thus --enable-obsolete-rpc was a dependency for --enable-obsolete-nsl (removed in a previous commit). The arc ABI list file has to be updated because the port was added with the sunrpc symbols Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc/thread-freeres.c')
-rw-r--r-- | malloc/thread-freeres.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/malloc/thread-freeres.c b/malloc/thread-freeres.c index eb29d53310..268f1c3688 100644 --- a/malloc/thread-freeres.c +++ b/malloc/thread-freeres.c @@ -22,6 +22,7 @@ #include <rpc/rpc.h> #include <string.h> #include <tls-internal.h> +#include <shlib-compat.h> /* Thread shutdown function. Note that this function must be called for threads during shutdown for correctness reasons. Unlike @@ -30,7 +31,9 @@ void __libc_thread_freeres (void) { - call_function_static_weak (__rpc_thread_destroy); +#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_32) + __rpc_thread_destroy (); +#endif call_function_static_weak (__res_thread_freeres); __glibc_tls_internal_free (); |