FreeBSD (and possibly NetBSD) build fix.
This commit is contained in:
parent
a7d0d19b07
commit
3903a10e93
2
src/os.c
2
src/os.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user