Pārlūkot izejas kodu

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 13 gadi atpakaļ
vecāks
revīzija
33d1d05a5d
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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__ */