From 17a1a692cb64c4b56a5c86e35f8abed121bc758b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 6 Aug 2002 14:46:14 +0000 Subject: Rework RPC code once again. By default, only enable the stuff needed for NFS mounts, rsh, and similar. -Erik --- libc/inet/rpc/svc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libc/inet/rpc/svc.c') diff --git a/libc/inet/rpc/svc.c b/libc/inet/rpc/svc.c index 92084bcc1..af4c6979f 100644 --- a/libc/inet/rpc/svc.c +++ b/libc/inet/rpc/svc.c @@ -42,12 +42,12 @@ #include #include -#include +#include "rpc_private.h" #include #include #include -#ifdef _RPC_THREAD_SAFE_ +#ifdef __UCLIBC_HAS_THREADS__ #define xports ((SVCXPRT **)RPC_THREAD_VARIABLE(svc_xports_s)) #else static SVCXPRT **xports; @@ -66,7 +66,7 @@ struct svc_callout { rpcvers_t sc_vers; void (*sc_dispatch) (struct svc_req *, SVCXPRT *); }; -#ifdef _RPC_THREAD_SAFE_ +#ifdef __UCLIBC_HAS_THREADS__ #define svc_head ((struct svc_callout *)RPC_THREAD_VARIABLE(svc_head_s)) #else static struct svc_callout *svc_head; @@ -478,7 +478,7 @@ svc_getreq_common (const int fd) while (stat == XPRT_MOREREQS); } -#ifdef _RPC_THREAD_SAFE_ +#ifdef __UCLIBC_HAS_THREADS__ void __rpc_thread_svc_cleanup (void) @@ -489,4 +489,4 @@ __rpc_thread_svc_cleanup (void) svc_unregister (svcp->sc_prog, svcp->sc_vers); } -#endif /* _RPC_THREAD_SAFE_ */ +#endif /* __UCLIBC_HAS_THREADS__ */ -- cgit v1.2.3