mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 13:10:31 -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/
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
--- base/debug/stack_trace_posix.cc.orig 2023-03-30 00:33:38 UTC
|
|
+++ base/debug/stack_trace_posix.cc
|
|
@@ -41,7 +41,7 @@
|
|
// execinfo.h and backtrace(3) are really only present in glibc and in macOS
|
|
// libc.
|
|
#if BUILDFLAG(IS_APPLE) || \
|
|
- (defined(__GLIBC__) && !defined(__UCLIBC__) && !defined(__AIX))
|
|
+ (defined(__GLIBC__) && !defined(__UCLIBC__) && !defined(__AIX) && !BUILDFLAG(IS_BSD))
|
|
#define HAVE_BACKTRACE
|
|
#include <execinfo.h>
|
|
#endif
|
|
@@ -59,7 +59,7 @@
|
|
#include <AvailabilityMacros.h>
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
#include "base/debug/proc_maps_linux.h"
|
|
#endif
|
|
|
|
@@ -799,6 +799,9 @@ class SandboxSymbolizeHelper {
|
|
// for the modules that are loaded in the current process.
|
|
// Returns true on success.
|
|
bool CacheMemoryRegions() {
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ return false;
|
|
+#else
|
|
// Reads /proc/self/maps.
|
|
std::string contents;
|
|
if (!ReadProcMaps(&contents)) {
|
|
@@ -816,6 +819,7 @@ class SandboxSymbolizeHelper {
|
|
|
|
is_initialized_ = true;
|
|
return true;
|
|
+#endif
|
|
}
|
|
|
|
// Opens all object files and caches their file descriptors.
|