From a4945f4827fcf9ca64ebfc6c74832d345b29288e Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Fri, 18 Mar 2011 23:33:19 +0100
Subject: [PATCH 108/396] 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>
---
 include/libc-internal.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/libc-internal.h b/include/libc-internal.h
index 74c3542..b56068c 100644
--- a/include/libc-internal.h
+++ b/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__ */
-- 
1.7.0.4

