about summary refs log tree commit diff
path: root/sunrpc/clnt_perr.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-07-06 17:43:09 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-07-07 20:19:57 +0200
commitd7ebcd43804891434c167ab4f1487aac65399548 (patch)
tree01e6647c86a7fee5baa640989a49b0ca1e19e568 /sunrpc/clnt_perr.c
parent325081b9eb2035f8f025255206889208f330b590 (diff)
downloadglibc-d7ebcd43804891434c167ab4f1487aac65399548.tar.gz
glibc-d7ebcd43804891434c167ab4f1487aac65399548.tar.xz
glibc-d7ebcd43804891434c167ab4f1487aac65399548.zip
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.
Diffstat (limited to 'sunrpc/clnt_perr.c')
-rw-r--r--sunrpc/clnt_perr.c4
1 files changed, 4 insertions, 0 deletions
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)