diff options
Diffstat (limited to 'libc')
| -rw-r--r-- | libc/inet/resolv.c | 2 | ||||
| -rw-r--r-- | libc/inet/rpc/rpc_thread.c | 4 | ||||
| -rw-r--r-- | libc/misc/internals/errno.c | 2 | ||||
| -rw-r--r-- | libc/stdio/Makefile | 2 | ||||
| -rw-r--r-- | libc/stdlib/malloc-standard/Makefile | 2 | ||||
| -rw-r--r-- | libc/sysdeps/linux/alpha/Makefile | 4 | ||||
| -rw-r--r-- | libc/sysdeps/linux/mips/__syscall_error.c | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index bb188b959..0c73fcab3 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -1104,7 +1104,7 @@ struct __res_state * weak_const_function __res_state (void) return &_res; } -#ifdef __PTHREADS_NATIVE__ +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ #include <tls.h> __thread struct __res_state *__resp = &_res; #endif diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c index be820599b..e3a1c40b2 100644 --- a/libc/inet/rpc/rpc_thread.c +++ b/libc/inet/rpc/rpc_thread.c @@ -9,7 +9,7 @@ /* Variable used in non-threaded applications or for the first thread. */ static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem; -#ifdef __PTHREADS_NATIVE__ +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ static struct rpc_thread_variables *__libc_tsd_RPC_VARS = &__libc_tsd_RPC_VARS_mem; #else @@ -82,7 +82,7 @@ __rpc_thread_variables (void) if (tvp != NULL) __libc_tsd_set (RPC_VARS, tvp); else -#ifdef __PTHREADS_NATIVE__ +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ tvp = __libc_tsd_RPC_VARS; #else tvp = __libc_tsd_RPC_VARS_data; diff --git a/libc/misc/internals/errno.c b/libc/misc/internals/errno.c index 5197e0aec..05acb7ea9 100644 --- a/libc/misc/internals/errno.c +++ b/libc/misc/internals/errno.c @@ -1,7 +1,7 @@ #include <features.h> #undef errno -#if __PTHREADS_NATIVE__ +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ #include <tls.h> extern int errno; extern __thread int _h_errno; diff --git a/libc/stdio/Makefile b/libc/stdio/Makefile index 6e1a95f2f..dc2a29173 100644 --- a/libc/stdio/Makefile +++ b/libc/stdio/Makefile @@ -59,7 +59,7 @@ endif # pthread functions CSRC += flockfile.c ftrylockfile.c funlockfile.c -ifeq ($(strip $(PTHREADS_NATIVE)),y) +ifeq ($(strip $(UCLIBC_HAS_THREADS_NATIVE)),y) CSRC += fatal.c endif diff --git a/libc/stdlib/malloc-standard/Makefile b/libc/stdlib/malloc-standard/Makefile index 28f67b058..acd7526e9 100644 --- a/libc/stdlib/malloc-standard/Makefile +++ b/libc/stdlib/malloc-standard/Makefile @@ -32,7 +32,7 @@ endif # calloc.c can be found at uClibc/libc/stdlib/calloc.c # valloc.c can be found at uClibc/libc/stdlib/valloc.c CSRC=malloc.c calloc.c realloc.c free.c memalign.c mallopt.c mallinfo.c -ifeq ($(PTHREADS_NATIVE),y) +ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) CSRC += thread-freeres.c endif COBJS=$(patsubst %.c,%.o, $(CSRC)) diff --git a/libc/sysdeps/linux/alpha/Makefile b/libc/sysdeps/linux/alpha/Makefile index 45e2ece62..ffb075b1a 100644 --- a/libc/sysdeps/linux/alpha/Makefile +++ b/libc/sysdeps/linux/alpha/Makefile @@ -32,7 +32,7 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -ifeq ($(PTHREADS_NATIVE),y) +ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) COBJS += $(PTDIR)sysdeps/$(TARGET_ARCH)/libc-tls.o endif @@ -80,7 +80,7 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif -ifeq ($(PTHREADS_NATIVE),y) +ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) $(PTDIR)sysdeps/$(TARGET_ARCH)/libc-tls.o: $(MAKE) -C $(PTDIR)sysdeps/$(TARGET_ARCH) libc-tls.o endif diff --git a/libc/sysdeps/linux/mips/__syscall_error.c b/libc/sysdeps/linux/mips/__syscall_error.c index 05dcacc8b..6ece361f3 100644 --- a/libc/sysdeps/linux/mips/__syscall_error.c +++ b/libc/sysdeps/linux/mips/__syscall_error.c @@ -22,7 +22,7 @@ /* This routine is jumped to by all the syscall handlers, to stash * an error number into errno. */ -#ifdef __PTHREADS_NATIVE__ +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ int __syscall_error(int err_no) #else int attribute_hidden __syscall_error(int err_no) |
