summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads_db
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-10-17 11:41:26 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-10-17 11:41:26 -0700
commit4596f460207d5c11a363c20745e5a7b56a0600c0 (patch)
treead16180460e18c90f5524a16aa254bce3266c660 /libpthread/linuxthreads_db
parent9b69fa33f016d8fd3c658fdcab70fa0700521752 (diff)
linuxthreads: check TLS_DTV_AT_TP define correctly
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/linuxthreads_db')
-rw-r--r--libpthread/linuxthreads_db/td_thr_tlsbase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads_db/td_thr_tlsbase.c b/libpthread/linuxthreads_db/td_thr_tlsbase.c
index 5a7e31b9e..00c863de2 100644
--- a/libpthread/linuxthreads_db/td_thr_tlsbase.c
+++ b/libpthread/linuxthreads_db/td_thr_tlsbase.c
@@ -36,9 +36,9 @@ td_thr_tlsbase (const td_thrhandle_t *th,
LOG ("td_thr_tlsbase");
psaddr_t dtvpp = th->th_unique;
-#if TLS_TCB_AT_TP
+#if defined(TLS_TCB_AT_TP)
dtvpp += offsetof (struct _pthread_descr_struct, p_header.data.dtvp);
-#elif TLS_DTV_AT_TP
+#elif defined(TLS_DTV_AT_TP)
/* Special case hack. If TLS_TCB_SIZE == 0 (on PowerPC), there is no TCB
containing the DTV at the TP, but actually the TCB lies behind the TP,
i.e. at the very end of the area covered by TLS_PRE_TCB_SIZE. */