Merge pull request #143 from devnexen/bsd_build_fix

FreeBSD (and possibly NetBSD) build fix.
This commit is contained in:
Daan
2019-09-02 09:51:12 -07:00
committed by GitHub

View File

@@ -261,6 +261,8 @@ static void* mi_unix_mmapx(size_t size, size_t try_alignment, int protect_flags,
if (p==MAP_FAILED) p = NULL; // fall back to regular mmap
}
}
#else
UNUSED(try_alignment);
#endif
if (p==NULL) {
p = mmap(NULL,size,protect_flags,flags,fd,0);