aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/errno-loc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-02 01:53:44 +0000
committerRoland McGrath <roland@gnu.org>2002-11-02 01:53:44 +0000
commitcfbc71d7ddf4393f00ff210998fe60f2464852b0 (patch)
treec2ddba19354ff814c5b63ef8665d3a403e278232 /sysdeps/generic/errno-loc.c
parentbde40c2f9ac07a40135e845b84fd0e470a562f65 (diff)
downloadglibc-cfbc71d7ddf4393f00ff210998fe60f2464852b0.tar
glibc-cfbc71d7ddf4393f00ff210998fe60f2464852b0.tar.gz
glibc-cfbc71d7ddf4393f00ff210998fe60f2464852b0.tar.bz2
glibc-cfbc71d7ddf4393f00ff210998fe60f2464852b0.zip
* sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
in place of [!(USE_TLS && HAVE___THREAD)]. (__errno_location) [! USE___THREAD]: Define as strong, not weak.
Diffstat (limited to 'sysdeps/generic/errno-loc.c')
-rw-r--r--sysdeps/generic/errno-loc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/generic/errno-loc.c b/sysdeps/generic/errno-loc.c
index 032b48306c..8332a46ad7 100644
--- a/sysdeps/generic/errno-loc.c
+++ b/sysdeps/generic/errno-loc.c
@@ -21,13 +21,15 @@
#include <errno.h>
#include <tls.h>
-#if !(USE_TLS && HAVE___THREAD)
+#if ! USE___THREAD
#undef errno
extern int errno;
#endif
int *
+#if ! USE___THREAD
weak_const_function
+#endif
__errno_location (void)
{
return &errno;