Linux tweaks.

This commit is contained in:
Ben Vanik
2015-08-18 14:18:00 -07:00
parent 19299fad4b
commit 8b0d4fb51c
37 changed files with 200 additions and 111 deletions

View File

@@ -39,11 +39,11 @@ std::unique_ptr<MappedMemory> MappedMemory::Open(const std::wstring& path,
const char* mode_str;
int prot;
switch (mode) {
case Mode::READ:
case Mode::kRead:
mode_str = "rb";
prot = PROT_READ;
break;
case Mode::READ_WRITE:
case Mode::kReadWrite:
mode_str = "r+b";
prot = PROT_READ | PROT_WRITE;
break;