diff options
Diffstat (limited to 'bsd-user/mmap.c')
-rw-r--r-- | bsd-user/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index ff207cd..139cd3f 100644 --- a/bsd-user/mmap.c +++ b/bsd-user/mmap.c @@ -240,7 +240,7 @@ static int mmap_frag(abi_ulong real_start, possible while it is a shared mapping */ if ((flags & TARGET_BSD_MAP_FLAGMASK) == MAP_SHARED && (prot & PROT_WRITE)) - return -EINVAL; + return -1; /* adjust protection to be able to read */ if (!(prot1 & PROT_WRITE)) |