diff options
Diffstat (limited to 'libc/misc/internals')
-rw-r--r-- | libc/misc/internals/internal_errno.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libc/misc/internals/internal_errno.h b/libc/misc/internals/internal_errno.h index d05537cdf..a93d0bf02 100644 --- a/libc/misc/internals/internal_errno.h +++ b/libc/misc/internals/internal_errno.h @@ -9,15 +9,10 @@ #undef errno #undef h_errno -/* need to tweak libpthread -#ifdef __UCLIBC_HAS_THREADS__ -# define errno __uclibc_errno -# define h_errno __uclibc_h_errno -#endif -*/ - extern int h_errno; -libc_hidden_proto(h_errno) - extern int errno; + +#ifdef __UCLIBC_HAS_THREADS__ +libc_hidden_proto(h_errno) libc_hidden_proto(errno) +#endif |