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
commit f5be3f4aeb
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

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 if (p==MAP_FAILED) p = NULL; // fall back to regular mmap
} }
} }
#else
UNUSED(try_alignment);
#endif #endif
if (p==NULL) { if (p==NULL) {
p = mmap(NULL,size,protect_flags,flags,fd,0); p = mmap(NULL,size,protect_flags,flags,fd,0);