OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
| 7 #include "native_client/src/include/build_config.h" |
| 8 |
7 #if NACL_OSX | 9 #if NACL_OSX |
8 # include <pthread.h> | 10 # include <pthread.h> |
9 #endif | 11 #endif |
10 | 12 |
11 #include "native_client/src/include/portability.h" | 13 #include "native_client/src/include/portability.h" |
12 #include "native_client/src/include/nacl_macros.h" | 14 #include "native_client/src/include/nacl_macros.h" |
13 | 15 |
14 #include "native_client/src/shared/platform/nacl_check.h" | 16 #include "native_client/src/shared/platform/nacl_check.h" |
15 #include "native_client/src/shared/platform/nacl_sync_checked.h" | 17 #include "native_client/src/shared/platform/nacl_sync_checked.h" |
16 #include "native_client/src/trusted/service_runtime/arch/x86/sel_ldr_x86.h" | 18 #include "native_client/src/trusted/service_runtime/arch/x86/sel_ldr_x86.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 nacl_current_thread = &natp->user; | 285 nacl_current_thread = &natp->user; |
284 } | 286 } |
285 | 287 |
286 struct NaClAppThread *NaClTlsGetCurrentThread(void) { | 288 struct NaClAppThread *NaClTlsGetCurrentThread(void) { |
287 return NaClAppThreadFromThreadContext(nacl_current_thread); | 289 return NaClAppThreadFromThreadContext(nacl_current_thread); |
288 } | 290 } |
289 | 291 |
290 #else | 292 #else |
291 # error "Woe to the service runtime. What OS is it being compiled for?!?" | 293 # error "Woe to the service runtime. What OS is it being compiled for?!?" |
292 #endif | 294 #endif |
OLD | NEW |