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

Unified Diff: src/libsampler/sampler.cc

Issue 2251603004: Fix compilation on BSD platforms (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months 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: src/libsampler/sampler.cc
diff --git a/src/libsampler/sampler.cc b/src/libsampler/sampler.cc
index b4d82f13855a038dfdb424ca5dd92c9f26e44f3f..71c667f4d6675ce675cc62aa6b32d8a0d6ef6295 100644
--- a/src/libsampler/sampler.cc
+++ b/src/libsampler/sampler.cc
@@ -193,7 +193,7 @@ void* ThreadKey(pthread_t thread_id) {
// Returns hash value for hash map.
uint32_t ThreadHash(pthread_t thread_id) {
-#if V8_OS_MACOSX
+#if V8_OS_BSD
return static_cast<uint32_t>(reinterpret_cast<intptr_t>(thread_id));
#else
return static_cast<uint32_t>(thread_id);
« 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