OSDN Git Service

link.h: guard TLS related internals of struct link_map with _LIBC
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 16 Mar 2011 21:15:05 +0000 (22:15 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:26 +0000 (14:00 +0200)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
include/link.h

index 185ee70..405e567 100644 (file)
@@ -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