summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
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");