Index: src/base/platform/platform-posix.cc |
diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc |
index 13461fafa071d87adf1aa43080d02bb4a4d8087d..e43493f0ae120143cc7e212201a648598eda122f 100644 |
--- a/src/base/platform/platform-posix.cc |
+++ b/src/base/platform/platform-posix.cc |
@@ -273,6 +273,8 @@ int OS::GetCurrentThreadId() { |
return static_cast<int>(gettid()); |
#elif V8_OS_AIX |
return static_cast<int>(thread_self()); |
+#elif V8_OS_SOLARIS |
+ return static_cast<int>(pthread_self()); |
#else |
return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self())); |
#endif |