pkgsrc-wip/chromium/patches/patch-base_shared__memory__posix.cc
Rui-Xiang Guo fa06d0f9e3 Update chromium to 10.0.648.205 that is based on the OpenBSD's ports with
modifying for *BSD support and additional NetBSD specific patches.
This version includes some security bug fixes.
2011-04-28 03:09:01 +00:00

13 lines
543 B
C++

$NetBSD: patch-base_shared__memory__posix.cc,v 1.1 2011/04/28 03:09:02 rxg Exp $
--- base/shared_memory_posix.cc.orig 2011-04-13 08:01:34.000000000 +0000
+++ base/shared_memory_posix.cc
@@ -149,7 +149,7 @@ bool SharedMemory::CreateNamed(const std
created_size_ = size;
}
if (fp == NULL) {
-#if !defined(OS_MACOSX)
+#if !defined(OS_MACOSX) && !defined(OS_BSD)
PLOG(ERROR) << "Creating shared memory in " << path.value() << " failed";
FilePath dir = path.DirName();
if (access(dir.value().c_str(), W_OK | X_OK) < 0) {