Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 6 Sep 2002 09:35:02 +0000 (09:35 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 6 Sep 2002 09:35:02 +0000 (09:35 +0000)
* include/errno.h: Use errno definition with __thread for now only
in libc and ld.so.

ChangeLog
include/errno.h

index d87b55c..a94939d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
 
+       * include/errno.h: Use errno definition with __thread for now only
+       in libc and ld.so.
+
        * test-skeleton.c (main): Improve error message for unexpected
        signal case.
 
index 934dae7..e9add91 100644 (file)
@@ -6,7 +6,7 @@
 
 # include <tls.h>              /* Defines USE_TLS.  */
 
-# if USE_TLS && HAVE___THREAD
+# if USE_TLS && HAVE___THREAD && (!defined NOT_IN_libc || defined IS_IN_rtld)
 #  undef  errno
 #  define errno errno          /* For #ifndef errno tests.  */
 extern __thread int errno;