Skip to content
Snippets Groups Projects
Commit 05814e1e 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 83caa885
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ struct xpmapping* xpmap(const char *filename, enum xpmap_type type)
switch(type) {
case XPMAP_READ:
oflags=O_RDONLY;
mflags=0;
mflags=MAP_PRIVATE;
mprot=PROT_READ;
break;
case XPMAP_WRITE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment