aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-v8_src_profiler_sampler.cc
blob: cb948582f33701d1a65ade0261c3322ebc632899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- v8/src/profiler/sampler.cc.orig	2016-08-04 11:28:06.738852000 -0400
+++ v8/src/profiler/sampler.cc	2016-08-04 11:28:29.356607000 -0400
@@ -210,7 +210,7 @@
 
 // Returns hash value for hash map.
 uint32_t ThreadHash(pthread_t thread_id) {
-#if V8_OS_MACOSX
+#if defined(V8_OS_MACOSX) || defined(__OpenBSD__) || defined(__FreeBSD__)
   return static_cast<uint32_t>(reinterpret_cast<intptr_t>(thread_id));
 #else
   return static_cast<uint32_t>(thread_id);