about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-10-09 18:21:41 +0000
committerUlrich Drepper <drepper@redhat.com>2002-10-09 18:21:41 +0000
commit89c167606de783a64153cce05a4b3c35826ee9ce (patch)
tree91d5d1912755601a265b39d8b34bb6d11be190dd
parent65e6f476b041657cf924d77e35e48bf1c9e0b284 (diff)
downloadglibc-89c167606de783a64153cce05a4b3c35826ee9ce.tar.gz
glibc-89c167606de783a64153cce05a4b3c35826ee9ce.tar.xz
glibc-89c167606de783a64153cce05a4b3c35826ee9ce.zip
Update.
	* sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
	(__libc_tsd_address): Use correct variable name.
	Patch by sStefan Jones <tefan.jones@multigig.com>.
-rw-r--r--ChangeLog4
-rw-r--r--bits/libc-tsd.h2
-rw-r--r--sysdeps/generic/bits/libc-tsd.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ec74b28a1..38b1d95152 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
+	(__libc_tsd_address): Use correct variable name.
+	Patch by sStefan Jones <tefan.jones@multigig.com>.
+
 	* sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
 	Reported by edwardsg@sgi.com [PR libc/4678].
 
diff --git a/bits/libc-tsd.h b/bits/libc-tsd.h
index ce25601986..1954b20334 100644
--- a/bits/libc-tsd.h
+++ b/bits/libc-tsd.h
@@ -60,7 +60,7 @@
 #else
 # define __libc_tsd_define(CLASS, KEY)	CLASS void *__libc_tsd_##KEY##_data;
 
-# define __libc_tsd_address(KEY)	(&__libc_tsd_##KEY)
+# define __libc_tsd_address(KEY)	(&__libc_tsd_##KEY##_data)
 # define __libc_tsd_get(KEY)		(__libc_tsd_##KEY##_data)
 # define __libc_tsd_set(KEY, VALUE)	(__libc_tsd_##KEY##_data = (VALUE))
 #endif
diff --git a/sysdeps/generic/bits/libc-tsd.h b/sysdeps/generic/bits/libc-tsd.h
index ce25601986..1954b20334 100644
--- a/sysdeps/generic/bits/libc-tsd.h
+++ b/sysdeps/generic/bits/libc-tsd.h
@@ -60,7 +60,7 @@
 #else
 # define __libc_tsd_define(CLASS, KEY)	CLASS void *__libc_tsd_##KEY##_data;
 
-# define __libc_tsd_address(KEY)	(&__libc_tsd_##KEY)
+# define __libc_tsd_address(KEY)	(&__libc_tsd_##KEY##_data)
 # define __libc_tsd_get(KEY)		(__libc_tsd_##KEY##_data)
 # define __libc_tsd_set(KEY, VALUE)	(__libc_tsd_##KEY##_data = (VALUE))
 #endif