summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-08-09 12:49:35 +0000
committerDavid McCullough <davidm@snapgear.com>2002-08-09 12:49:35 +0000
commitbcf6f328c630b2d6b2bb84d81159424307b82d38 (patch)
tree9229eab5ec7ffb115ab0101b470d71d5fdc64773 /libc/inet/rpc
parent9499715d4881a8535ca0e7476b3691e498179eb5 (diff)
Changes so that this file builds if we are not using threads.
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/rpc_thread.c5
1 files changed, 2 insertions, 3 deletions
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 <bits/libc-tsd.h>
#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");