Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / devel / poco / patches / patch-ad
blob519d508763fd44b02ce25756000e808bb201749a
1 $NetBSD: patch-ad,v 1.1.1.1 2011/02/06 05:55:15 schnoebe Exp $
3 # comment out the atttempts at shared memory (at least for NetBSD)
5 --- Foundation/src/SharedMemory_POSIX.cpp.orig  2011-02-09 09:12:55.000000000 +0000
6 +++ Foundation/src/SharedMemory_POSIX.cpp
7 @@ -69,7 +69,8 @@ SharedMemoryImpl::SharedMemoryImpl(const
8                 flags |= O_RDONLY;
9  
10         // open the shared memory segment
11 -       _fd = ::shm_open(_name.c_str(), flags, S_IRUSR | S_IWUSR);
12 +       // _fd = ::shm_open(_name.c_str(), flags, S_IRUSR | S_IWUSR);
13 +       _fd = -1;
14         if (_fd == -1)
15                 throw SystemException("Cannot create shared memory object", _name);
17 @@ -78,7 +79,7 @@ SharedMemoryImpl::SharedMemoryImpl(const
18         {
19                 ::close(_fd);
20                 _fd = -1;
21 -               ::shm_unlink(_name.c_str());
22 +               //::shm_unlink(_name.c_str());
23                 throw SystemException("Cannot resize shared memory object", _name);
24         }
25         map(addrHint);
26 @@ -148,7 +149,7 @@ void SharedMemoryImpl::close()
27         }
28         if (!_fileMapped && _server)
29         {
30 -               ::shm_unlink(_name.c_str());
31 +               //::shm_unlink(_name.c_str());
32         }
33  }