[PATCH 1/4] sunrpc: Turn clnt_sperrno into a libc_hidden_nolink_sunrpc symbol

Florian Weimer fweimer@redhat.com
Mon Jul 6 19:03:12 GMT 2020


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)
-- 
2.25.4




More information about the Libc-alpha mailing list