mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 07:51:03 +00:00
hunk api mremap supported by NetBSD as well.
This commit is contained in:
parent
3b296c43a0
commit
65357c9ba5
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