mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 19:10:36 +08:00
* mmap.cc (mmap): Fix conditional for previous patch.
This commit is contained in:
parent
90725b3297
commit
37a2d97a31
@ -1,3 +1,7 @@
|
||||
Tue Mar 27 11:31:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* mmap.cc (mmap): Fix conditional for previous patch.
|
||||
|
||||
Mon Mar 26 18:48:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* mmap.cc (mmap): Outflank copy-on-write problem on 9x by
|
||||
|
@ -383,7 +383,7 @@ mmap (caddr_t addr, size_t len, int prot, int flags, int fd, off_t off)
|
||||
/* copy-on-write doesn't work correctly on 9x. To have at least read
|
||||
access we use *READ mapping on 9x when appropriate. It will still
|
||||
fail when needing write access, though. */
|
||||
if ((flags & MAP_PRIVATE) && (os_being_run == winNT || !(prot & PROT_READ)))
|
||||
if ((flags & MAP_PRIVATE) && (os_being_run == winNT || (prot & ~PROT_READ)))
|
||||
access = FILE_MAP_COPY;
|
||||
|
||||
SetResourceLock(LOCK_MMAP_LIST,READ_LOCK|WRITE_LOCK," mmap");
|
||||
|
Loading…
x
Reference in New Issue
Block a user