Skip to content

Commit

Permalink
make compatible with FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
oschonrock committed Dec 8, 2024
1 parent 8b6b7d8 commit 0b8e75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mio/detail/mmap.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0b8e75d

Please sign in to comment.