mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 16:57:01 +08:00
make compatible with FreeBSD
fixes https://github.com/vimpunk/mio/issues/110
This commit is contained in:
parent
8b6b7d878c
commit
0b8e75d995
@ -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(
|
char* mapping_start = static_cast<char*>(::mmap(
|
||||||
0, // Don't give hint as to where to map.
|
0, // Don't give hint as to where to map.
|
||||||
length_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,
|
MAP_SHARED,
|
||||||
file_handle,
|
file_handle,
|
||||||
aligned_offset));
|
aligned_offset));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user