--- www/chromium/files/patch-base_sampling__heap__profiler_sampling__heap__profiler.cc (revision 504141) +++ www/chromium/files/patch-base_sampling__heap__profiler_sampling__heap__profiler.cc (working copy) @@ -1,5 +1,14 @@ ---- base/sampling_heap_profiler/sampling_heap_profiler.cc.orig 2019-06-04 18:55:15 UTC -+++ base/sampling_heap_profiler/sampling_heap_profiler.cc +--- base/sampling_heap_profiler/sampling_heap_profiler.cc.orig 2019-06-13 09:11:51.000000000 +0200 ++++ base/sampling_heap_profiler/sampling_heap_profiler.cc 2019-06-14 19:09:06.434351000 +0200 +@@ -22,7 +22,7 @@ + #include "base/trace_event/heap_profiler_allocation_context_tracker.h" + #include "build/build_config.h" + +-#if defined(OS_MACOSX) ++#if defined(OS_MACOSX) || defined(OS_BSD) + #include + #endif + @@ -30,6 +30,10 @@ #include #endif @@ -11,7 +20,7 @@ #if defined(OS_ANDROID) && BUILDFLAG(CAN_UNWIND_WITH_CFI_TABLE) && \ defined(OFFICIAL_BUILD) #include "base/trace_event/cfi_backtrace_android.h" -@@ -65,6 +69,10 @@ const char* GetAndLeakThreadName() { +@@ -65,6 +69,10 @@ #elif defined(OS_MACOSX) int err = pthread_getname_np(pthread_self(), name, kBufferLen); if (err == 0 && *name != '\0')