aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-10-17 05:22:03 +0000
committerRoland McGrath <roland@gnu.org>2005-10-17 05:22:03 +0000
commitb50fedc465a51795afd731e67f72a7eeebebce1b (patch)
tree7c3009db9169b0842002ef05f25bc293f0aedf33 /linuxthreads/sysdeps
parent7dce326c64d91c0237ae20657d3a65c114627eed (diff)
downloadglibc-b50fedc465a51795afd731e67f72a7eeebebce1b.tar.xz
glibc-b50fedc465a51795afd731e67f72a7eeebebce1b.zip
Updated to fedora-glibc-2_3-20051017T0518
Diffstat (limited to 'linuxthreads/sysdeps')
-rw-r--r--linuxthreads/sysdeps/powerpc/tcb-offsets.sym2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/powerpc/tcb-offsets.sym b/linuxthreads/sysdeps/powerpc/tcb-offsets.sym
index b526b62336..7c5cca01ea 100644
--- a/linuxthreads/sysdeps/powerpc/tcb-offsets.sym
+++ b/linuxthreads/sysdeps/powerpc/tcb-offsets.sym
@@ -8,7 +8,7 @@
-- Abuse tls.h macros to derive offsets relative to the thread register.
# undef __thread_register
# define __thread_register ((void *) 0)
-# define thread_offsetof(mem) ((void *) &THREAD_SELF->p_##mem - (void *) 0)
+# define thread_offsetof(mem) ((ptrdiff_t) THREAD_SELF + offsetof (struct _pthread_descr_struct, p_##mem))
# else