Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: base/platform_thread_posix.cc

Issue 4812003: NaCl bringup of base.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/platform_thread_posix.cc
===================================================================
--- base/platform_thread_posix.cc (revision 65551)
+++ base/platform_thread_posix.cc (working copy)
@@ -4,7 +4,6 @@
#include "base/platform_thread.h"
-#include <dlfcn.h>
#include <errno.h>
#include <sched.h>
@@ -15,11 +14,16 @@
#endif
#if defined(OS_LINUX)
+#include <dlfcn.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
#include <unistd.h>
#endif
+#if defined(OS_NACL)
+#include <sys/nacl_syscalls.h>
+#endif
+
#include "base/logging.h"
#include "base/safe_strerror_posix.h"
@@ -47,6 +51,8 @@
#elif defined(OS_FREEBSD)
// TODO(BSD): find a better thread ID
return reinterpret_cast<int64>(pthread_self());
+#elif defined(OS_NACL)
+ return pthread_self();
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698