summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 23:55:02 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 23:55:02 +0000
commit609990b5b4254601504935427483e3fc22cfde80 (patch)
tree024157c97875cb415f95c4169145d58aa5cbd70a
parent72b8809d3e37a3f6b836a03c5fbab024f7e3e399 (diff)
downloadchromium_src-609990b5b4254601504935427483e3fc22cfde80.zip
chromium_src-609990b5b4254601504935427483e3fc22cfde80.tar.gz
chromium_src-609990b5b4254601504935427483e3fc22cfde80.tar.bz2
Use syscall instead since gettid doesn't seem to exist.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@845 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/platform_thread.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/platform_thread.cc b/base/platform_thread.cc
index 2ee7a2e..eda6fc1e 100644
--- a/base/platform_thread.cc
+++ b/base/platform_thread.cc
@@ -37,7 +37,7 @@
#if defined(OS_MACOSX)
#include <mach/mach.h>
#elif defined(OS_LINUX)
-#include <sys/types.h>
+#include <sys/syscall.h>
#include <unistd.h>
#endif
@@ -87,7 +87,7 @@ int PlatformThread::CurrentId() {
#elif defined(OS_MACOSX)
return mach_thread_self();
#elif defined(OS_LINUX)
- return gettid();
+ return syscall(__NR_gettid);
#endif
}