aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-base_memory_platform__shared__memory__region.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron29/files/patch-base_memory_platform__shared__memory__region.h')
-rw-r--r--devel/electron29/files/patch-base_memory_platform__shared__memory__region.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-base_memory_platform__shared__memory__region.h b/devel/electron29/files/patch-base_memory_platform__shared__memory__region.h
new file mode 100644
index 000000000000..a9ddfa6dd2df
--- /dev/null
+++ b/devel/electron29/files/patch-base_memory_platform__shared__memory__region.h
@@ -0,0 +1,29 @@
+--- base/memory/platform_shared_memory_region.h.orig 2023-08-10 01:48:30 UTC
++++ base/memory/platform_shared_memory_region.h
+@@ -16,7 +16,7 @@
+
+ #include <stdint.h>
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ namespace content {
+ class SandboxIPCHandler;
+ }
+@@ -83,7 +83,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion {
+ kMaxValue = GET_SHMEM_TEMP_DIR_FAILURE
+ };
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // Structure to limit access to executable region creation.
+ struct ExecutableRegion {
+ private:
+@@ -215,7 +215,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion {
+ CheckPlatformHandlePermissionsCorrespondToMode);
+ static PlatformSharedMemoryRegion Create(Mode mode,
+ size_t size
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ ,
+ bool executable = false
+ #endif