Date: Sun, 16 Jun 2019 02:17:03 +0000 (UTC) From: "Carlos J. Puga Medina" <cpm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r504272 - head/www/chromium/files Message-ID: <201906160217.x5G2H34K019616@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cpm Date: Sun Jun 16 02:17:02 2019 New Revision: 504272 URL: https://svnweb.freebsd.org/changeset/ports/504272 Log: www/chromium: Unbreak build on < 11.3 In file included from gen/base/base_jumbo_17.cc:8: ./../../base/sampling_heap_profiler/sampling_heap_profiler.cc:74:3: error: use of undeclared identifier 'pthread_get_name_np' pthread_get_name_np(pthread_self(), name, kBufferLen); ^ PR: 238563 Reported by: kib@ Modified: head/www/chromium/files/patch-base_sampling__heap__profiler_sampling__heap__profiler.cc Modified: head/www/chromium/files/patch-base_sampling__heap__profiler_sampling__heap__profiler.cc ============================================================================== --- head/www/chromium/files/patch-base_sampling__heap__profiler_sampling__heap__profiler.cc Sat Jun 15 22:25:44 2019 (r504271) +++ head/www/chromium/files/patch-base_sampling__heap__profiler_sampling__heap__profiler.cc Sun Jun 16 02:17:02 2019 (r504272) @@ -1,5 +1,5 @@ ---- 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 21:28:04.089347000 +0200 @@ -30,6 +30,10 @@ #include <sys/prctl.h> #endif @@ -11,12 +11,12 @@ #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') + return strdup(name); -+#elif defined(OS_BSD) ++#elif defined(OS_BSD) && defined(HAVE_PTHREAD_GET_NAME_NP) + pthread_get_name_np(pthread_self(), name, kBufferLen); + if (*name != '\0') return strdup(name);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906160217.x5G2H34K019616>