Fixed Linux build.

This commit is contained in:
XMRig 2019-06-02 19:58:16 +07:00
parent fc655d1b8d
commit 8dc586283f
2 changed files with 2 additions and 1 deletions

View file

@ -134,6 +134,7 @@ else()
"${SOURCES_OS}" "${SOURCES_OS}"
src/App_unix.cpp src/App_unix.cpp
src/common/Platform_unix.cpp src/common/Platform_unix.cpp
src/Mem_unix.cpp
src/crypto/common/VirtualMemory_unix.cpp src/crypto/common/VirtualMemory_unix.cpp
) )

View file

@ -74,7 +74,7 @@ void xmrig::VirtualMemory::flushInstructionCache(void *p, size_t size)
void xmrig::VirtualMemory::freeLargePagesMemory(void *p, size_t size) void xmrig::VirtualMemory::freeLargePagesMemory(void *p, size_t size)
{ {
munmap(memory, size); munmap(p, size);
} }