]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sunrpc: Turn clnt_sperrno into a libc_hidden_nolink_sunrpc symbol
authorFlorian Weimer <fweimer@redhat.com>
Mon, 6 Jul 2020 15:43:09 +0000 (17:43 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 7 Jul 2020 18:19:57 +0000 (20:19 +0200)
Before this change, the function had a default symbol version even
without --enable-obsolete-rpc.

sunrpc/clnt_perr.c

index dd5b10688ea4d2e862c7be6a4358c50e17685e39..67499fd03ff0d9dc3832de7827345a9592ce2746 100644 (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)