ports/www/iridium/files/patch-base_debug_stack__trace__posix.cc
Carlos J. Puga Medina 633f9296f4 Add new port www/iridium
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/
2017-04-29 23:00:33 +00:00

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.