mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 22:30:38 -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://www.electronjs.org/
24 lines
690 B
C++
24 lines
690 B
C++
--- v8/src/flags/flags.cc.orig 2024-10-16 21:34:56 UTC
|
|
+++ v8/src/flags/flags.cc
|
|
@@ -16,6 +16,10 @@
|
|
#include <set>
|
|
#include <sstream>
|
|
|
|
+#if V8_OS_OPENBSD
|
|
+#include <sys/mman.h>
|
|
+#endif
|
|
+
|
|
#include "src/base/functional.h"
|
|
#include "src/base/lazy-instance.h"
|
|
#include "src/base/platform/platform.h"
|
|
@@ -807,6 +811,10 @@ void FlagList::FreezeFlags() {
|
|
// Note that for string flags we only protect the pointer itself, but not the
|
|
// string storage. TODO(12887): Fix this.
|
|
base::OS::SetDataReadOnly(&v8_flags, sizeof(v8_flags));
|
|
+#if V8_OS_OPENBSD
|
|
+ if (mimmutable(&v8_flags, sizeof(v8_flags)) == -1)
|
|
+ FATAL("unable to set immutability of v8_flags");
|
|
+#endif
|
|
}
|
|
|
|
// static
|