[git commit future 1/1] link.h: guard TLS related internals of struct link_map with _LIBC

Peter S. Mazinger ps.m at gmx.net
Wed Mar 16 19:20:32 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=051cf94f8c44b5b71b58450b688d5498f09d1049
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 include/link.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/link.h b/include/link.h
index 185ee70..405e567 100644
--- a/include/link.h
+++ b/include/link.h
@@ -110,7 +110,7 @@ struct link_map
     char *l_name;		/* Absolute file name object was found in.  */
     ElfW(Dyn) *l_ld;		/* Dynamic section of the shared object.  */
     struct link_map *l_next, *l_prev; /* Chain of loaded objects.  */
-
+#ifdef _LIBC
 #if defined(USE_TLS) && USE_TLS
     /* Thread-local storage related info.  */
 
@@ -134,6 +134,7 @@ struct link_map
     /* Nonzero if _dl_init_static_tls should be called for this module */
     unsigned int l_need_tls_init:1;
 #endif
+#endif
   };
 
 #ifdef __USE_GNU
-- 
1.7.3.4



More information about the uClibc-cvs mailing list