Skip to content

Commit

Permalink
v8: fix build on solaris platforms
Browse files Browse the repository at this point in the history
`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 <cjihrig@gmail.com>
  • Loading branch information
jbergstroem authored and cjihrig committed Mar 12, 2015
1 parent 41c9daa commit 8c4f0df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/v8/src/base/platform/platform-posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ int OS::GetCurrentThreadId() {
return static_cast<int>(syscall(__NR_gettid));
#elif V8_OS_ANDROID
return static_cast<int>(gettid());
#elif V8_OS_SOLARIS
return static_cast<int>(pthread_self());
#else
return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
#endif
Expand Down

0 comments on commit 8c4f0df

Please sign in to comment.