Explorar o código

Changes so that this file builds if we are not using threads.

David McCullough %!s(int64=23) %!d(string=hai) anos
pai
achega
bcf6f328c6
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      libc/inet/rpc/rpc_thread.c

+ 2 - 3
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");