mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 08:46:51 +08:00
Merge 0b8e75d9951d7f3b422f30e97cd6cf727fdc979c into 8b6b7d878c89e81614d05edca7936de41ccdd2da
This commit is contained in:
commit
1ccfb35fb7
@ -205,7 +205,7 @@ inline mmap_context memory_map(const file_handle_type file_handle, const int64_t
|
||||
char* mapping_start = static_cast<char*>(::mmap(
|
||||
0, // Don't give hint as to where to map.
|
||||
length_to_map,
|
||||
mode == access_mode::read ? PROT_READ : PROT_WRITE,
|
||||
mode == access_mode::read ? PROT_READ : PROT_READ | PROT_WRITE,
|
||||
MAP_SHARED,
|
||||
file_handle,
|
||||
aligned_offset));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user