Linux: ignore missing MAP_NORESERVE on FreeBSD

Common/MemArenaPosix.cpp:111:71: error: use of undeclared identifier 'MAP_NORESERVE'
        void *base = mmap(0, EIGHT_GIGS, PROT_NONE, MAP_ANON | MAP_PRIVATE | MAP_NORESERVE, -1, 0);
                                                                             ^
This commit is contained in:
Jan Beich 2020-12-27 05:02:37 +00:00
parent 1ba290a454
commit 633ba355ee

View File

@ -26,6 +26,11 @@
#include <cstring>
#include <string>
#ifndef MAP_NORESERVE
// Not implemented on BSDs
#define MAP_NORESERVE 0
#endif
#include "Common/Log.h"
#include "Common/File/FileUtil.h"
#include "Common/MemoryUtil.h"