b77bf3e957
Changelog: https://www.firefox.com/en-US/firefox/150.0/releasenotes/ https://www.firefox.com/en-US/firefox/150.0.1/releasenotes/ While here add part of fix for support locales. PR: 294872 294372 Sponsored by: UNIS Labs MFH: 2026Q2
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
commit cf2fba7d3f8414cfc993b6a2d9ab01b43f6669d5
|
|
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
|
|
|
|
we need signal.h and BinaryPath.h
|
|
|
|
diff --git ipc/glue/ForkServer.cpp ipc/glue/ForkServer.cpp
|
|
index d18fab02d686..837d0ac62f40 100644
|
|
--- ipc/glue/ForkServer.cpp
|
|
+++ ipc/glue/ForkServer.cpp
|
|
@@ -22,12 +22,15 @@
|
|
#include <string.h>
|
|
#include <sys/wait.h>
|
|
#include <unistd.h>
|
|
+#if defined(XP_FREEBSD)
|
|
+#include <signal.h>
|
|
+#endif
|
|
|
|
#if defined(XP_LINUX) && defined(MOZ_SANDBOX)
|
|
# include "mozilla/SandboxLaunch.h"
|
|
#endif
|
|
|
|
-#if defined(XP_OPENBSD)
|
|
+#if defined(XP_OPENBSD) || defined(XP_FREEBSD)
|
|
# include "BinaryPath.h"
|
|
# include <err.h>
|
|
#endif
|
|
@@ -76,7 +79,7 @@ ForkServer::ForkServer(int* aArgc, char*** aArgv) : mArgc(aArgc), mArgv(aArgv) {
|
|
*/
|
|
static void ForkServerPreload(int& aArgc, char** aArgv) {
|
|
Omnijar::ChildProcessInit(aArgc, aArgv);
|
|
-#if defined(XP_OPENBSD)
|
|
+#if defined(XP_OPENBSD) || defined(XP_FREEBSD)
|
|
char binaryPath[MAXPATHLEN];
|
|
nsresult rv = mozilla::BinaryPath::Get(binaryPath);
|
|
if (NS_FAILED(rv)) {
|