diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-06-30 04:09:20 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-06-30 04:09:20 -0700 |
commit | 913b76abdd824ee3a6dbbc1527470ebcb8c06a65 (patch) | |
tree | b63f2ef89f9282abbaa1f5fddfab3bb8f516706a /libc/misc/internals | |
parent | 7576366386a8a0c71d1efdda3f8cd8e1724a8c23 (diff) |
nptl/errno: Use a separate __errno_location for libpthread.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'libc/misc/internals')
-rw-r--r-- | libc/misc/internals/__errno_location.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c index 487a9c2c5..aec7641ce 100644 --- a/libc/misc/internals/__errno_location.c +++ b/libc/misc/internals/__errno_location.c @@ -7,7 +7,11 @@ #include "internal_errno.h" /* psm: moved to bits/errno.h: */ -int * weak_const_function __errno_location (void) +int * +#ifndef __UCLIBC_HAS_THREADS__ +weak_const_function +#endif +__errno_location (void) { return &errno; } |