hunk api mremap supported by NetBSD as well.

This commit is contained in:
David Carlier 2019-03-29 17:24:07 +00:00
parent 3b296c43a0
commit 65357c9ba5

View file

@ -97,6 +97,8 @@ Hunk_End(void)
#if defined(__linux__)
n = (byte *)mremap(membase, maxhunksize, curhunksize + sizeof(size_t), 0);
#elif defined(__NetBSD__)
n = (byte *)mremap(membase, maxhunksize, NULL, curhunksize + sizeof(size_t), 0);
#else
#ifndef round_page
size_t page_size = sysconf(_SC_PAGESIZE);