diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-06-12 02:15:11 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-06-12 02:15:11 +0000 |
commit | 69c1f07506ef56973b543c3ec111a4673c11f16c (patch) | |
tree | c290e80a383f9013715f2ace3e8c49ae7490c654 /libc/inet/rpc/rpc_thread.c | |
parent | 7910749bb6b82696ad718f2ef75e9e181f1ad6f4 (diff) | |
download | uClibc-alpine-69c1f07506ef56973b543c3ec111a4673c11f16c.tar.bz2 uClibc-alpine-69c1f07506ef56973b543c3ec111a4673c11f16c.tar.xz |
Changed files for glibc compatibility so that more NPTL files would build.
Diffstat (limited to 'libc/inet/rpc/rpc_thread.c')
-rw-r--r-- | libc/inet/rpc/rpc_thread.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c index 75a5d0f4d..be820599b 100644 --- a/libc/inet/rpc/rpc_thread.c +++ b/libc/inet/rpc/rpc_thread.c @@ -9,8 +9,13 @@ /* Variable used in non-threaded applications or for the first thread. */ static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem; +#ifdef __PTHREADS_NATIVE__ +static struct rpc_thread_variables *__libc_tsd_RPC_VARS = + &__libc_tsd_RPC_VARS_mem; +#else static struct rpc_thread_variables *__libc_tsd_RPC_VARS_data = &__libc_tsd_RPC_VARS_mem; +#endif /* * Task-variable destructor @@ -77,7 +82,11 @@ __rpc_thread_variables (void) if (tvp != NULL) __libc_tsd_set (RPC_VARS, tvp); else +#ifdef __PTHREADS_NATIVE__ + tvp = __libc_tsd_RPC_VARS; +#else tvp = __libc_tsd_RPC_VARS_data; +#endif } } return tvp; |