summaryrefslogtreecommitdiff
path: root/include/errno.h
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-05-10 12:34:49 +0800
committerThomas Schwinge <thomas@codesourcery.com>2012-05-10 12:34:49 +0800
commit88269fd016729c5097f8e1c5684b54540a7545f3 (patch)
tree76f07a9458c6f74ce9df2840c771519ef9ee70e8 /include/errno.h
parentb22c7133ed5fb854945be6f6262331e91e501a87 (diff)
Do not yet use TLS for errno.
glibc-2.8/debian/patches/hurd-i386/local-tls.diff 3057
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/errno.h b/include/errno.h
index 98c6080528..8acab90f95 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -21,13 +21,15 @@ extern int rtld_errno attribute_hidden;
# include <tls.h>
-# undef errno
-# ifndef NOT_IN_libc
-# define errno __libc_errno
-# else
-# define errno errno /* For #ifndef errno tests. */
-# endif
+# if !defined(__GNU__)
+# undef errno
+# ifndef NOT_IN_libc
+# define errno __libc_errno
+# else
+# define errno errno /* For #ifndef errno tests. */
+# endif
extern __thread int errno attribute_tls_model_ie;
+# endif
# endif /* RTLD_PRIVATE_ERRNO */