blob: 03eeb852dacd3eb70f3b3686651b82b7d19abea2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-base_thread.h,v 1.1 2013/04/29 09:52:17 ryoon Exp $
--- base/thread.h.orig 2012-08-31 05:37:06.000000000 +0000
+++ base/thread.h
@@ -55,7 +55,8 @@
// Andorid NDK and NaCl don't support TLS.
#if defined(OS_LINUX) && !defined(OS_ANDROID) && \
- !defined(__native_client__) && (defined(__GNUC__) || defined(__clang__))
+ !defined(__native_client__) && (defined(__GNUC__) || defined(__clang__)) \
+ || defined(OS_NETBSD)
// GCC and Clang support TLS.
#define TLS_KEYWORD __thread
#define HAVE_TLS 1
|