summaryrefslogtreecommitdiff
path: root/www/chromium/patches/patch-base_tracing_trace_time_cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/patches/patch-base_tracing_trace_time_cc')
-rw-r--r--www/chromium/patches/patch-base_tracing_trace_time_cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/www/chromium/patches/patch-base_tracing_trace_time_cc b/www/chromium/patches/patch-base_tracing_trace_time_cc
deleted file mode 100644
index 9724f03..0000000
--- a/www/chromium/patches/patch-base_tracing_trace_time_cc
+++ /dev/null
@@ -1,29 +0,0 @@
1Index: base/tracing/trace_time.cc
2--- base/tracing/trace_time.cc.orig
3+++ base/tracing/trace_time.cc
4@@ -8,13 +8,17 @@
5 #include "build/build_config.h"
6 #include "third_party/perfetto/include/perfetto/base/time.h"
7
8+#if BUILDFLAG(IS_FREEBSD)
9+#define CLOCK_BOOTTIME CLOCK_UPTIME
10+#endif
11+
12 namespace base {
13 namespace tracing {
14
15 int64_t TraceBootTicksNow() {
16 // On Windows and Mac, TRACE_TIME_TICKS_NOW() behaves like boottime already.
17 #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
18- BUILDFLAG(IS_FUCHSIA)
19+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
20 struct timespec ts;
21 int res = clock_gettime(CLOCK_BOOTTIME, &ts);
22 if (res != -1)
23@@ -24,4 +28,4 @@ int64_t TraceBootTicksNow() {
24 }
25
26 } // namespace tracing
27-} // namespace base
28\ No newline at end of file
29+} // namespace base