From ec2868627f550cb9edbfb05ce3680ecbb23d715b Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 9 May 2012 15:51:23 +0200 Subject: Make sunrpc code usable again This in effect reverts the obsoletion of the sunrpc code. 2012-05-09 Andreas Schwab Andreas Jaeger * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc. * config.h.in (LINK_OBSOLETE_RPC): Add. * config.make.in (link-obsolete-rpc): Add. * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from libc_hidden_nolink and define based on LINK_OBSOLETE_RPC. * sunrpc/Makefile (headers)[link-obsolete-rpc]: Add rpc headers. (shared-only-routines): Do not use with link-obsolete-rpc. * nis/Makefile (headers)[link-obsolete-rpc]: Add rpc headers. * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc. * sunrpc/auth_none.c: Likewise. * sunrpc/auth_unix.c: Likewise. * sunrpc/authdes_prot.c: Likewise. * sunrpc/authuxprot.c: Likewise. * sunrpc/clnt_gen.c: Likewise. * sunrpc/clnt_perr.c: Likewise. * sunrpc/clnt_raw.c: Likewise. * sunrpc/clnt_simp.c: Likewise. * sunrpc/clnt_tcp.c: Likewise. * sunrpc/clnt_udp.c: Likewise. * sunrpc/clnt_unix.c: Likewise. * sunrpc/des_crypt.c: Likewise. * sunrpc/des_soft.c: Likewise. * sunrpc/get_myaddr.c: Likewise. * sunrpc/key_call.c: Likewise. * sunrpc/key_prot.c: Likewise. * sunrpc/netname.c: Likewise. * sunrpc/pm_getmaps.c: Likewise. * sunrpc/pm_getport.c: Likewise. * sunrpc/pmap_clnt.c: Likewise. * sunrpc/pmap_prot.c: Likewise. * sunrpc/pmap_prot2.c: Likewise. * sunrpc/pmap_rmt.c: Likewise. * sunrpc/publickey.c: Likewise. * sunrpc/rpc_cmsg.c: Likewise. * sunrpc/rpc_common.c: Likewise. * sunrpc/rpc_dtable.c: Likewise. * sunrpc/rpc_prot.c: Likewise. * sunrpc/rpc_thread.c: Likewise. * sunrpc/rtime.c: Likewise. * sunrpc/svc.c: Likewise. * sunrpc/svc_auth.c: Likewise. * sunrpc/svc_raw.c: Likewise. * sunrpc/svc_run.c: Likewise. * sunrpc/svc_tcp.c: Likewise. * sunrpc/svc_udp.c: Likewise. * sunrpc/svc_unix.c: Likewise. * sunrpc/svcauth_des.c: Likewise. * sunrpc/xcrypt.c: Likewise. * sunrpc/xdr.c: Likewise. * sunrpc/xdr_array.c: Likewise. * sunrpc/xdr_float.c: Likewise. * sunrpc/xdr_intXX_t.c: Likewise. * sunrpc/xdr_mem.c: Likewise. * sunrpc/xdr_rec.c: Likewise. * sunrpc/xdr_ref.c: Likewise. * sunrpc/xdr_sizeof.c: Likewise. * sunrpc/xdr_stdio.c: Likewise. --- sunrpc/svc_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sunrpc/svc_auth.c') diff --git a/sunrpc/svc_auth.c b/sunrpc/svc_auth.c index facbb13982..f33bda2f20 100644 --- a/sunrpc/svc_auth.c +++ b/sunrpc/svc_auth.c @@ -105,7 +105,7 @@ _authenticate (register struct svc_req *rqst, struct rpc_msg *msg) return AUTH_REJECTEDCRED; } -libc_hidden_nolink (_authenticate, GLIBC_2_1) +libc_hidden_nolink_sunrpc (_authenticate, GLIBC_2_1) static enum auth_stat _svcauth_null (struct svc_req *rqst, struct rpc_msg *msg) -- cgit v1.2.1