瀏覽代碼

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 年之前
父節點
當前提交
33d1d05a5d
共有 1 個文件被更改,包括 3 次插入0 次删除
  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__ */