@@ -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
@@ -38,11 +38,6 @@ libc_hidden_proto(__errno_location)
# endif
-/* We now need a declaration of the `errno' variable. */
-# ifndef __UCLIBC_HAS_THREADS__
-/*extern int errno;*/
-libc_hidden_proto(errno)
-# endif
#endif /* !__ASSEMBLER__ */
#endif