aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_perfetto_include_perfetto_base_thread__utils.h
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2019-05-24 12:34:58 +0000
committerRene Ladan <rene@FreeBSD.org>2019-05-24 12:34:58 +0000
commita8a9149eb324b20a62cfdb78132a569c6fab2046 (patch)
tree5fdd2d2e7f3be73797f9b742907237c43172a303 /www/chromium/files/patch-third__party_perfetto_include_perfetto_base_thread__utils.h
parentefe661c3ed7d39ba6964bc4164b1f75bc7f02328 (diff)
downloadports-a8a9149eb324b20a62cfdb78132a569c6fab2046.tar.gz
ports-a8a9149eb324b20a62cfdb78132a569c6fab2046.zip
www/chromium: update to 74.0.3729.157
Submitted by: Matthias Wolf via GitHub (#150 #151) MFH: 2019Q2
Notes
Notes: svn path=/head/; revision=502461
Diffstat (limited to 'www/chromium/files/patch-third__party_perfetto_include_perfetto_base_thread__utils.h')
-rw-r--r--www/chromium/files/patch-third__party_perfetto_include_perfetto_base_thread__utils.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/chromium/files/patch-third__party_perfetto_include_perfetto_base_thread__utils.h b/www/chromium/files/patch-third__party_perfetto_include_perfetto_base_thread__utils.h
new file mode 100644
index 000000000000..e2b4905d03eb
--- /dev/null
+++ b/www/chromium/files/patch-third__party_perfetto_include_perfetto_base_thread__utils.h
@@ -0,0 +1,25 @@
+--- third_party/perfetto/include/perfetto/base/thread_utils.h.orig 2019-04-30 22:25:55 UTC
++++ third_party/perfetto/include/perfetto/base/thread_utils.h
+@@ -33,6 +33,10 @@
+ #include <unistd.h>
+ #endif
+
++#if PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD)
++#include <pthread_np.h>
++#endif
++
+ namespace perfetto {
+ namespace base {
+
+@@ -40,6 +44,11 @@ namespace base {
+ using PlatformThreadID = pid_t;
+ inline PlatformThreadID GetThreadId() {
+ return gettid();
++}
++#elif PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD)
++ using PlatformThreadID = int;
++inline PlatformThreadID GetThreadId() {
++ return pthread_getthreadid_np();
+ }
+ #elif PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX)
+ using PlatformThreadID = pid_t;