Parcourir la source

libc-internal.h: provide dummy attribute_tls_model_ie and __thread for non TLS builds

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger il y a 13 ans
Parent
commit
33d1d05a5d
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      include/libc-internal.h

+ 3 - 0
include/libc-internal.h

@@ -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__ */