OSDN Git Service

libc-internal.h: provide dummy attribute_tls_model_ie and __thread for non TLS builds
authorPeter S. Mazinger <ps.m@gmx.net>
Fri, 18 Mar 2011 22:33:19 +0000 (23:33 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:28 +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/libc-internal.h

index 74c3542..b56068c 100644 (file)
@@ -29,6 +29,9 @@
 
 #ifdef __UCLIBC_HAS_TLS__
 # define attribute_tls_model_ie __attribute__ ((tls_model ("initial-exec")))
+#else
+# define attribute_tls_model_ie
+# define __thread
 #endif
 
 /* Pull in things like __attribute_used__ */