Merge pull request #384 from devnexen/netbsd_little_update

hunk api mremap supported by NetBSD as well.
This commit is contained in:
Yamagi 2019-04-08 14:00:16 +02:00 committed by GitHub
commit d24335a97c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);