chromium 11.0.969.72
[chromium.git] / patches / patch-base_shared__memory__posix.cc
1 $NetBSD$
2
3 --- base/shared_memory_posix.cc.orig    2011-04-13 08:01:34.000000000 +0000
4 +++ base/shared_memory_posix.cc
5 @@ -149,7 +149,7 @@ bool SharedMemory::CreateNamed(const std
6      created_size_ = size;
7    }
8    if (fp == NULL) {
9 -#if !defined(OS_MACOSX)
10 +#if !defined(OS_MACOSX) && !defined(OS_BSD)
11      PLOG(ERROR) << "Creating shared memory in " << path.value() << " failed";
12      FilePath dir = path.DirName();
13      if (access(dir.value().c_str(), W_OK | X_OK) < 0) {