Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_memory_platform__shared__memory__region.h
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_memory_platform__shared__memory__region.h
--- src/3rdparty/chromium/base/memory/platform_shared_memory_region.h.orig 2019-11-27 21:12:25 UTC | --- src/3rdparty/chromium/base/memory/platform_shared_memory_region.h.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/memory/platform_shared_memory_region.h | +++ src/3rdparty/chromium/base/memory/platform_shared_memory_region.h | ||||
@@ -28,7 +28,7 @@ | @@ -27,7 +27,7 @@ | ||||
#include "base/files/scoped_file.h" | #include "base/files/scoped_file.h" | ||||
#endif | #endif | ||||
-#if defined(OS_LINUX) | -#if defined(OS_LINUX) || defined(OS_CHROMEOS) | ||||
+#if defined(OS_LINUX) || defined(OS_BSD) | +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) | ||||
namespace content { | namespace content { | ||||
class SandboxIPCHandler; | class SandboxIPCHandler; | ||||
} | } | ||||
@@ -122,7 +122,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { | @@ -120,7 +120,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { | ||||
kMaxValue = GET_SHMEM_TEMP_DIR_FAILURE | kMaxValue = GET_SHMEM_TEMP_DIR_FAILURE | ||||
}; | }; | ||||
-#if defined(OS_LINUX) | -#if defined(OS_LINUX) || defined(OS_CHROMEOS) | ||||
+#if defined(OS_LINUX) || defined(OS_BSD) | +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) | ||||
// Structure to limit access to executable region creation. | // Structure to limit access to executable region creation. | ||||
struct ExecutableRegion { | struct ExecutableRegion { | ||||
private: | private: | ||||
@@ -276,7 +276,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { | @@ -264,7 +264,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { | ||||
CheckPlatformHandlePermissionsCorrespondToMode); | CheckPlatformHandlePermissionsCorrespondToMode); | ||||
static PlatformSharedMemoryRegion Create(Mode mode, | static PlatformSharedMemoryRegion Create(Mode mode, | ||||
size_t size | size_t size | ||||
-#if defined(OS_LINUX) | -#if defined(OS_LINUX) || defined(OS_CHROMEOS) | ||||
+#if defined(OS_LINUX) || defined(OS_BSD) | +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) | ||||
, | , | ||||
bool executable = false | bool executable = false | ||||
#endif | #endif |