Skip to content

Commit 8c4f0df

Browse files
jbergstroemcjihrig
authored andcommitted
v8: fix build on solaris platforms
`v8/3c7e4403` introduced a different cast which broke building on Illumos. Revert to previous behavior for V8_OS_SOLARIS. Found on SmartOS while building with gcc 4.9.0. V8-Issue: https://code.google.com/p/v8/issues/detail?id=3935 V8-Patch: https://codereview.chromium.org/990063002 PR-URL: #1079 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 41c9daa commit 8c4f0df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/v8/src/base/platform/platform-posix.cc

+2
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ int OS::GetCurrentThreadId() {
260260
return static_cast<int>(syscall(__NR_gettid));
261261
#elif V8_OS_ANDROID
262262
return static_cast<int>(gettid());
263+
#elif V8_OS_SOLARIS
264+
return static_cast<int>(pthread_self());
263265
#else
264266
return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
265267
#endif

0 commit comments

Comments
 (0)