mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 07:51:03 +00:00
Merge pull request #384 from devnexen/netbsd_little_update
hunk api mremap supported by NetBSD as well.
This commit is contained in:
commit
d24335a97c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue