From 58d0dcc23d3d908d2d61f0dbbf4bef3de7da706b Mon Sep 17 00:00:00 2001 From: "abarth@chromium.org" Date: Fri, 12 Nov 2010 17:59:41 +0000 Subject: NaCl bringup of base. We need to include nacl_syscalls.h for nanosleep. Original patch by Eric Seidel. Review URL: http://codereview.chromium.org/4812003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65960 0039d316-1c4b-4281-b951-d872f2087c98 --- base/platform_thread_posix.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/platform_thread_posix.cc b/base/platform_thread_posix.cc index 040452e..66f3928 100644 --- a/base/platform_thread_posix.cc +++ b/base/platform_thread_posix.cc @@ -4,7 +4,6 @@ #include "base/platform_thread.h" -#include #include #include @@ -15,11 +14,16 @@ #endif #if defined(OS_LINUX) +#include #include #include #include #endif +#if defined(OS_NACL) +#include +#endif + #include "base/logging.h" #include "base/safe_strerror_posix.h" @@ -47,6 +51,8 @@ PlatformThreadId PlatformThread::CurrentId() { #elif defined(OS_FREEBSD) // TODO(BSD): find a better thread ID return reinterpret_cast(pthread_self()); +#elif defined(OS_NACL) + return pthread_self(); #endif } -- cgit v1.1