Skip to content

Commit

Permalink
Fix Linux may not have mmap enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
eggdai committed Oct 25, 2024
1 parent 7490837 commit 6acb2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bq_common/platform/io/memory_map_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace bq {
}
}

result.real_data_ = mmap(NULL, real_mapping_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, real_mapping_offset);
result.real_data_ = mmap(NULL, real_mapping_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, real_mapping_offset);

if (MAP_FAILED == result.real_data_) {
result.error_code_ = errno;
Expand Down

0 comments on commit 6acb2a9

Please sign in to comment.