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.
This commit is contained in:
Florian Weimer 2020-07-06 17:43:09 +02:00
parent 325081b9eb
commit d7ebcd4380
1 changed files with 4 additions and 0 deletions

View File

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