mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 14:10:30 -04:00
Iridium is a free, open, and libre browser modification of the Chromium code base, with privacy being enhanced in several key areas. Automatic transmission of partial queries, keywords, metrics to central services is inhibited and only occurs with consent. WWW: https://iridiumbrowser.de/
30 lines
838 B
C++
30 lines
838 B
C++
--- base/debug/stack_trace_posix.cc.orig 2017-04-19 19:06:28 UTC
|
|
+++ base/debug/stack_trace_posix.cc
|
|
@@ -34,7 +34,7 @@
|
|
#include <AvailabilityMacros.h>
|
|
#endif
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
#include "base/debug/proc_maps_linux.h"
|
|
#endif
|
|
|
|
@@ -575,6 +575,10 @@ class SandboxSymbolizeHelper {
|
|
// for the modules that are loaded in the current process.
|
|
// Returns true on success.
|
|
bool CacheMemoryRegions() {
|
|
+#if defined(OS_FREEBSD)
|
|
+ // TODO (rene) avoid link error, implement something?
|
|
+ return false;
|
|
+#else
|
|
// Reads /proc/self/maps.
|
|
std::string contents;
|
|
if (!ReadProcMaps(&contents)) {
|
|
@@ -590,6 +594,7 @@ class SandboxSymbolizeHelper {
|
|
|
|
is_initialized_ = true;
|
|
return true;
|
|
+#endif
|
|
}
|
|
|
|
// Opens all object files and caches their file descriptors.
|