Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_profiler_sampling__profiler__thread__token.h
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_profiler_sampling__profiler__thread__token.h
--- src/3rdparty/chromium/base/profiler/sampling_profiler_thread_token.h.orig 2020-04-08 09:41:36 UTC | --- src/3rdparty/chromium/base/profiler/sampling_profiler_thread_token.h.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/profiler/sampling_profiler_thread_token.h | +++ src/3rdparty/chromium/base/profiler/sampling_profiler_thread_token.h | ||||
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||||
#include "base/threading/platform_thread.h" | #include "base/threading/platform_thread.h" | ||||
#include "build/build_config.h" | #include "build/build_config.h" | ||||
-#if defined(OS_ANDROID) || defined(OS_LINUX) | -#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) | ||||
+#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) | +#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) | ||||
#include <pthread.h> | #include <pthread.h> | ||||
#endif | #endif | ||||
@@ -21,7 +21,7 @@ namespace base { | @@ -21,7 +21,7 @@ struct SamplingProfilerThreadToken { | ||||
// functions used to obtain the stack base address. | // functions used to obtain the stack base address. | ||||
struct SamplingProfilerThreadToken { | struct SamplingProfilerThreadToken { | ||||
PlatformThreadId id; | PlatformThreadId id; | ||||
-#if defined(OS_ANDROID) || defined(OS_LINUX) | -#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) | ||||
+#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) | +#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) | ||||
pthread_t pthread_id; | pthread_t pthread_id; | ||||
#endif | #endif | ||||
}; | }; |