mirror of
https://git.freebsd.org/ports.git
synced 2025-05-08 03:40:46 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
20 lines
668 B
C++
20 lines
668 B
C++
--- base/tracing/trace_time.cc.orig 2025-03-24 20:50:14 UTC
|
|
+++ base/tracing/trace_time.cc
|
|
@@ -8,12 +8,16 @@
|
|
#include "build/build_config.h"
|
|
#include "third_party/perfetto/include/perfetto/base/time.h"
|
|
|
|
+#if BUILDFLAG(IS_FREEBSD)
|
|
+#define CLOCK_BOOTTIME CLOCK_UPTIME
|
|
+#endif
|
|
+
|
|
namespace base::tracing {
|
|
|
|
int64_t TraceBootTicksNow() {
|
|
// On Windows and Mac, TRACE_TIME_TICKS_NOW() behaves like boottime already.
|
|
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
|
|
- BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
struct timespec ts;
|
|
int res = clock_gettime(CLOCK_BOOTTIME, &ts);
|
|
if (res != -1) {
|