summaryrefslogtreecommitdiff
path: root/translate/grt/config
diff options
context:
space:
mode:
authorgingold2006-02-14 10:48:56 +0000
committergingold2006-02-14 10:48:56 +0000
commit750ed35d4bbec0015e2e7e1f4f3543c7217bbcb2 (patch)
tree07bbdc41b0c1c9257966d807171e9bc926298ecf /translate/grt/config
parent517a3edcd4d7d97cdfe3301e362859eb816aeb29 (diff)
downloadghdl-750ed35d4bbec0015e2e7e1f4f3543c7217bbcb2.tar.gz
ghdl-750ed35d4bbec0015e2e7e1f4f3543c7217bbcb2.tar.bz2
ghdl-750ed35d4bbec0015e2e7e1f4f3543c7217bbcb2.zip
bugs fixes
Diffstat (limited to 'translate/grt/config')
-rw-r--r--translate/grt/config/linux.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/translate/grt/config/linux.c b/translate/grt/config/linux.c
index ab999c0..2fe92c0 100644
--- a/translate/grt/config/linux.c
+++ b/translate/grt/config/linux.c
@@ -189,7 +189,12 @@ static void grt_signal_setup (void)
#endif
/* Context for the main stack. */
-static __thread struct stack_context main_stack_context;
+#ifdef USE_THREADS
+#define THREAD __thread
+#else
+#define THREAD
+#endif
+static THREAD struct stack_context main_stack_context;
extern void grt_set_main_stack (struct stack_context *stack);