From d7ebcd43804891434c167ab4f1487aac65399548 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 6 Jul 2020 17:43:09 +0200 Subject: [PATCH] sunrpc: Turn clnt_sperrno into a libc_hidden_nolink_sunrpc symbol Before this change, the function had a default symbol version even without --enable-obsolete-rpc. --- sunrpc/clnt_perr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sunrpc/clnt_perr.c b/sunrpc/clnt_perr.c index dd5b10688e..67499fd03f 100644 --- a/sunrpc/clnt_perr.c +++ b/sunrpc/clnt_perr.c @@ -257,7 +257,11 @@ clnt_sperrno (enum clnt_stat stat) } return _("RPC: (unknown error code)"); } +#ifdef EXPORT_RPC_SYMBOLS libc_hidden_def (clnt_sperrno) +#else +libc_hidden_nolink_sunrpc (clnt_sperrno, GLIBC_2_0) +#endif void clnt_perrno (enum clnt_stat num)