summary refs log tree commit diff
path: root/linuxthreads_db
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-06-21 21:03:30 +0000
committerUlrich Drepper <drepper@redhat.com>2002-06-21 21:03:30 +0000
commit90f0056f74f13f5fc387a8eaf7d0dda974d76468 (patch)
tree297837edc41f5f89f19f4da8799b7b8af4af8d93 /linuxthreads_db
parent1a4876ef39f32be4f0955a6d12ae1b5e2a015695 (diff)
downloadglibc-90f0056f74f13f5fc387a8eaf7d0dda974d76468.tar.gz
glibc-90f0056f74f13f5fc387a8eaf7d0dda974d76468.tar.xz
glibc-90f0056f74f13f5fc387a8eaf7d0dda974d76468.zip
(td_thr_tls_get_addr): Don't include "tls.h". Return TD_ERR if USE_TLS is not defined.
Diffstat (limited to 'linuxthreads_db')
-rw-r--r--linuxthreads_db/td_thr_tls_get_addr.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/linuxthreads_db/td_thr_tls_get_addr.c b/linuxthreads_db/td_thr_tls_get_addr.c
index 7e05070a33..77ef0cac4c 100644
--- a/linuxthreads_db/td_thr_tls_get_addr.c
+++ b/linuxthreads_db/td_thr_tls_get_addr.c
@@ -21,16 +21,18 @@
 
 #include "link.h"
 #include "thread_dbP.h"
-#include "tls.h"
 
 /* Value used for dtv entries for which the allocation is delayed.  */
 # define TLS_DTV_UNALLOCATED	((void *) -1l)
 
 
 td_err_e
-td_thr_tls_get_addr (const td_thrhandle_t *th, struct link_map *map,
-		     size_t offset, void **address)
+td_thr_tls_get_addr (const td_thrhandle_t *th __attribute_used__,
+		     struct link_map *map __attribute_used__,
+		     size_t offset __attribute_used__,
+		     void **address __attribute_used__)
 {
+#if USE_TLS
   struct _pthread_descr_struct pds;
   size_t modid;
   union dtv pdtv;
@@ -59,4 +61,7 @@ td_thr_tls_get_addr (const td_thrhandle_t *th, struct link_map *map,
   *address = (char *) pdtv.pointer + offset;
 
   return TD_OK;
+#else
+  return TD_ERR;
+#endif
 }