Differential D23984 Diff 69308 head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.h
Changeset View
Changeset View
Standalone View
Standalone View
head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.h
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- base/profiler/sampling_profiler_thread_token.h.orig 2020-03-05 05:52:21 UTC | |||||
+++ base/profiler/sampling_profiler_thread_token.h | |||||
@@ -9,7 +9,7 @@ | |||||
#include "base/threading/platform_thread.h" | |||||
#include "build/build_config.h" | |||||
-#if defined(OS_ANDROID) || defined(OS_LINUX) | |||||
+#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) | |||||
#include <pthread.h> | |||||
#endif | |||||
@@ -21,7 +21,7 @@ namespace base { | |||||
// functions used to obtain the stack base address. | |||||
struct SamplingProfilerThreadToken { | |||||
PlatformThreadId id; | |||||
-#if defined(OS_ANDROID) || defined(OS_LINUX) | |||||
+#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) | |||||
pthread_t pthread_id; | |||||
#endif | |||||
}; |