diff options
Diffstat (limited to 'www/chromium/files/patch-third__party_perfetto_src_base_utils.cc')
-rw-r--r-- | www/chromium/files/patch-third__party_perfetto_src_base_utils.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/www/chromium/files/patch-third__party_perfetto_src_base_utils.cc b/www/chromium/files/patch-third__party_perfetto_src_base_utils.cc deleted file mode 100644 index 65f65894063d..000000000000 --- a/www/chromium/files/patch-third__party_perfetto_src_base_utils.cc +++ /dev/null @@ -1,34 +0,0 @@ ---- third_party/perfetto/src/base/utils.cc.orig 2021-04-14 18:43:06 UTC -+++ third_party/perfetto/src/base/utils.cc -@@ -21,7 +21,8 @@ - - #if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ - PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \ -- PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) -+ PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) || \ -+ PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD) - #include <unistd.h> // For getpagesize() and geteuid(). - #endif - -@@ -67,8 +68,9 @@ void MaybeReleaseAllocatorMemToOS() { - - uint32_t GetSysPageSize() { - ignore_result(kPageSize); // Just to keep the amalgamated build happy. --#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ -- PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) -+#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ -+ PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \ -+ PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD) - static std::atomic<uint32_t> page_size{0}; - // This function might be called in hot paths. Avoid calling getpagesize() all - // the times, in many implementations getpagesize() calls sysconf() which is -@@ -89,7 +91,8 @@ uint32_t GetSysPageSize() { - uid_t GetCurrentUserId() { - #if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \ - PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \ -- PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) -+ PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE) || \ -+ PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD) - return geteuid(); - #else - // TODO(primiano): On Windows we could hash the current user SID and derive a |