From b6be30de420bce31201cac6f8a9d998ae0a6ab7a Mon Sep 17 00:00:00 2001
From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Date: Wed, 9 Jul 2014 12:53:21 +1200
Subject: [PATCH] Force libstdc++ to use TLS.
---
gcc/libstdc++-v3/config/os/haiku/os_defines.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/libstdc++-v3/config/os/haiku/os_defines.h b/gcc/libstdc++-v3/config/os/haiku/os_defines.h
index 0793756..8b4741f 100644
a
|
b
|
|
32 | 32 | |
33 | 33 | // System-specific #define, typedefs, corrections, etc, go here. This |
34 | 34 | // file will come before all others. |
| 35 | #define _GLIBCXX_HAVE_TLS 1 |
35 | 36 | |
36 | 37 | // On Haiku, nanosleep and sched_yield are always available except for the |
37 | | // kernel and the bootloader, so use them. |
| 38 | // kernel and the bootloader, so use them. |
38 | 39 | #if !defined(_KERNEL_MODE) && !defined(_LOADER_MODE) |
39 | 40 | #define _GLIBCXX_USE_NANOSLEEP 1 |
40 | 41 | #define _GLIBCXX_USE_SCHED_YIELD 1 |