Skip to content

Commit

Permalink
Merge pull request #27 from fkxingkong/develop
Browse files Browse the repository at this point in the history
Fix Linux may not have mmap enabled
  • Loading branch information
pippocao authored Oct 25, 2024
2 parents 7490837 + 6acb2a9 commit 34eda91
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 34eda91

Please sign in to comment.