From 8dc586283fd482ca1bd1a4c98030e0c412bff6c5 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sun, 2 Jun 2019 19:58:16 +0700 Subject: [PATCH] Fixed Linux build. --- CMakeLists.txt | 1 + src/crypto/common/VirtualMemory_unix.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46ad3bd46..282faa874 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,7 @@ else() "${SOURCES_OS}" src/App_unix.cpp src/common/Platform_unix.cpp + src/Mem_unix.cpp src/crypto/common/VirtualMemory_unix.cpp ) diff --git a/src/crypto/common/VirtualMemory_unix.cpp b/src/crypto/common/VirtualMemory_unix.cpp index b40a9c7bf..9ae2bdf3c 100644 --- a/src/crypto/common/VirtualMemory_unix.cpp +++ b/src/crypto/common/VirtualMemory_unix.cpp @@ -74,7 +74,7 @@ void xmrig::VirtualMemory::flushInstructionCache(void *p, size_t size) void xmrig::VirtualMemory::freeLargePagesMemory(void *p, size_t size) { - munmap(memory, size); + munmap(p, size); }