Skip to content
Snippets Groups Projects
Commit 74729f19 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix mmap flags for read.

At least one of MAP_ANON, MAP_GUARD, MAP_PRIVATE, MAP_SHARED, or MAP_STACK
must be specified.
parent 85fdb87b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2709 passed
...@@ -43,7 +43,7 @@ struct xpmapping* xpmap(const char *filename, enum xpmap_type type) ...@@ -43,7 +43,7 @@ struct xpmapping* xpmap(const char *filename, enum xpmap_type type)
switch(type) { switch(type) {
case XPMAP_READ: case XPMAP_READ:
oflags=O_RDONLY; oflags=O_RDONLY;
mflags=0; mflags=MAP_PRIVATE;
mprot=PROT_READ; mprot=PROT_READ;
break; break;
case XPMAP_WRITE: case XPMAP_WRITE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment