Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_memory_platform__shared__memory__region__posix.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_memory_platform__shared__memory__region__posix.cc
--- src/3rdparty/chromium/base/memory/platform_shared_memory_region_posix.cc.orig 2019-11-27 21:12:25 UTC | --- src/3rdparty/chromium/base/memory/platform_shared_memory_region_posix.cc.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/memory/platform_shared_memory_region_posix.cc | +++ src/3rdparty/chromium/base/memory/platform_shared_memory_region_posix.cc | ||||
@@ -76,7 +76,7 @@ FDPair ScopedFDPair::get() const { | @@ -70,7 +70,7 @@ FDPair ScopedFDPair::get() const { | ||||
return {fd.get(), readonly_fd.get()}; | return {fd.get(), readonly_fd.get()}; | ||||
} | } | ||||
-#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) | ||||
// static | // static | ||||
ScopedFD PlatformSharedMemoryRegion::ExecutableRegion::CreateFD(size_t size) { | ScopedFD PlatformSharedMemoryRegion::ExecutableRegion::CreateFD(size_t size) { | ||||
PlatformSharedMemoryRegion region = | PlatformSharedMemoryRegion region = | ||||
@@ -85,7 +85,7 @@ ScopedFD PlatformSharedMemoryRegion::ExecutableRegion: | @@ -79,7 +79,7 @@ ScopedFD PlatformSharedMemoryRegion::ExecutableRegion: | ||||
return region.PassPlatformHandle().fd; | return region.PassPlatformHandle().fd; | ||||
return ScopedFD(); | return ScopedFD(); | ||||
} | } | ||||
-#endif // defined(OS_LINUX) | -#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) | ||||
+#endif // defined(OS_LINUX) || defined(OS_BSD) | +#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) | ||||
// static | // static | ||||
PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Take( | PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Take( | ||||
@@ -224,7 +224,7 @@ bool PlatformSharedMemoryRegion::MapAtInternal(off_t o | @@ -204,7 +204,7 @@ PlatformSharedMemoryRegion PlatformSharedMemoryRegion: | ||||
// static | // static | ||||
PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Create(Mode mode, | PlatformSharedMemoryRegion 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 | bool executable | ||||
#endif | #endif | ||||
@@ -255,7 +255,7 @@ PlatformSharedMemoryRegion PlatformSharedMemoryRegion: | @@ -233,7 +233,7 @@ PlatformSharedMemoryRegion PlatformSharedMemoryRegion: | ||||
// flag. | // flag. | ||||
FilePath directory; | FilePath directory; | ||||
if (!GetShmemTempDir( | if (!GetShmemTempDir( | ||||
-#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) | ||||
executable, | executable, | ||||
#else | #else | ||||
false /* executable */, | false /* executable */, |