diff options
Diffstat (limited to 'darwin-user/mmap.c')
-rw-r--r-- | darwin-user/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/darwin-user/mmap.c b/darwin-user/mmap.c index 8ba61fb..d840b28 100644 --- a/darwin-user/mmap.c +++ b/darwin-user/mmap.c @@ -129,7 +129,7 @@ int mmap_frag(unsigned long host_start, if ((flags & MAP_SHARED) && #endif (prot & PROT_WRITE)) - return -EINVAL; + return -1; /* adjust protection to be able to read */ if (!(prot1 & PROT_WRITE)) |