diff options
author | Khem Raj <kraj@mvista.com> | 2008-12-23 10:16:51 +0000 |
---|---|---|
committer | Khem Raj <kraj@mvista.com> | 2008-12-23 10:16:51 +0000 |
commit | f6fc6973e34a3c250457aed1710ee0872800acdd (patch) | |
tree | 6c7a5a33037fecf05340829155d636a5994ba7a2 /libc/misc/internals/errno.c | |
parent | 6374ca896086574af61eb37ef371e3371b10bb5c (diff) | |
download | uClibc-alpine-f6fc6973e34a3c250457aed1710ee0872800acdd.tar.bz2 uClibc-alpine-f6fc6973e34a3c250457aed1710ee0872800acdd.tar.xz |
Get non nptl threads compiled on x86.
Diffstat (limited to 'libc/misc/internals/errno.c')
-rw-r--r-- | libc/misc/internals/errno.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libc/misc/internals/errno.c b/libc/misc/internals/errno.c index 23b2bb375..a89b5addf 100644 --- a/libc/misc/internals/errno.c +++ b/libc/misc/internals/errno.c @@ -19,18 +19,20 @@ extern __thread int __libc_h_errno __attribute__ ((alias ("h_errno"))); #define h_errno __libc_h_errno #else -extern int errno; -extern int h_errno; - +#include "internal_errno.h" #if 0 /* Unfortunately, this doesn't work... */ int h_errno __attribute__ ((section (".bss"))) = 0; int errno __attribute__ ((section (".bss"))) = 0; #else -int _errno = 0; -int _h_errno = 0; +int errno = 0; +int h_errno = 0; #endif -weak_alias(_errno, errno) -weak_alias(_h_errno, h_errno) +#ifdef __UCLIBC_HAS_THREADS__ +libc_hidden_def(errno) +weak_alias(errno, _errno) +libc_hidden_def(h_errno) +weak_alias(h_errno, _h_errno) +#endif #endif |