Compilation fix

This commit is contained in:
Nekotekina 2014-08-31 15:18:32 +04:00
parent 571bd63644
commit ebc4fa3e81

View File

@ -4,7 +4,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
static void* const m_base_addr = VirtualAlloc(nullptr, 0x100000000, MEM_RESERVE, PAGE_NOACCESS); void* const m_base_addr = VirtualAlloc(nullptr, 0x100000000, MEM_RESERVE, PAGE_NOACCESS);
#else #else
#include <sys/mman.h> #include <sys/mman.h>
@ -13,7 +13,7 @@ static void* const m_base_addr = VirtualAlloc(nullptr, 0x100000000, MEM_RESERVE,
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#endif #endif
static void* const m_base_addr = ::mmap(nullptr, 0x100000000, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); void* const m_base_addr = ::mmap(nullptr, 0x100000000, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
#endif #endif
namespace vm namespace vm