diff options
Diffstat (limited to 'devel/electron37/files/patch-electron_shell_app_node__main.cc')
-rw-r--r-- | devel/electron37/files/patch-electron_shell_app_node__main.cc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-electron_shell_app_node__main.cc b/devel/electron37/files/patch-electron_shell_app_node__main.cc new file mode 100644 index 000000000000..4a39a2c636f7 --- /dev/null +++ b/devel/electron37/files/patch-electron_shell_app_node__main.cc @@ -0,0 +1,37 @@ +--- electron/shell/app/node_main.cc.orig 2025-07-02 10:12:01 UTC ++++ electron/shell/app/node_main.cc +@@ -50,7 +50,7 @@ + #include "shell/common/mac/codesign_util.h" + #endif + +-#if !IS_MAS_BUILD() ++#if !IS_MAS_BUILD() && !BUILDFLAG(IS_BSD) + #include "components/crash/core/app/crashpad.h" // nogncheck + #include "shell/app/electron_crash_reporter_client.h" + #include "shell/common/crash_keys.h" +@@ -102,14 +102,14 @@ bool UnsetHijackableEnvs(base::Environment* env) { + } + #endif + +-#if IS_MAS_BUILD() ++#if IS_MAS_BUILD() || BUILDFLAG(IS_BSD) + void SetCrashKeyStub(const std::string& key, const std::string& value) {} + void ClearCrashKeyStub(const std::string& key) {} + #endif + + v8::Local<v8::Value> GetParameters(v8::Isolate* isolate) { + std::map<std::string, std::string> keys; +-#if !IS_MAS_BUILD() ++#if !IS_MAS_BUILD() && !BUILDFLAG(IS_BSD) + electron::crash_keys::GetCrashKeys(&keys); + #endif + return gin::ConvertToV8(isolate, keys); +@@ -269,7 +269,7 @@ int NodeMain() { + // Setup process.crashReporter in child node processes + auto reporter = gin_helper::Dictionary::CreateEmpty(isolate); + reporter.SetMethod("getParameters", &GetParameters); +-#if IS_MAS_BUILD() ++#if IS_MAS_BUILD() || BUILDFLAG(IS_BSD) + reporter.SetMethod("addExtraParameter", &SetCrashKeyStub); + reporter.SetMethod("removeExtraParameter", &ClearCrashKeyStub); + #else |