From bcf6f328c630b2d6b2bb84d81159424307b82d38 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Fri, 9 Aug 2002 12:49:35 +0000 Subject: Changes so that this file builds if we are not using threads. --- libc/inet/rpc/rpc_thread.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libc') diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c index 7262190df..90b0a6a2a 100644 --- a/libc/inet/rpc/rpc_thread.c +++ b/libc/inet/rpc/rpc_thread.c @@ -5,14 +5,13 @@ #include #include "rpc_private.h" +#ifdef __UCLIBC_HAS_THREADS__ + /* Variable used in non-threaded applications or for the first thread. */ static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem; static struct rpc_thread_variables *__libc_tsd_RPC_VARS_data = &__libc_tsd_RPC_VARS_mem; -#ifdef __UCLIBC_HAS_THREADS__ - - extern int __pthread_once (pthread_once_t *__once_control, void (*__init_routine) (void)); asm (".weak __pthread_once"); -- cgit v1.2.3