diff options
author | Andrey Nazarov <skuller@skuller.net> | 2012-08-24 20:42:28 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-08-24 20:42:28 +0400 |
commit | 90c4841855f94853a0f678da792527f6a175cf2c (patch) | |
tree | c07fe63cfed2cb89b9c0c16045050282033c32fd /src/unix/hunk.c | |
parent | 8eea41ce9d6a70dd0e7d835f940859b5824fc22f (diff) |
Make Q2PRO compile on OpenBSD.
Original patch provided by Jonathan Gray.
Diffstat (limited to 'src/unix/hunk.c')
-rw-r--r-- | src/unix/hunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/hunk.c b/src/unix/hunk.c index f88da34..c381429 100644 --- a/src/unix/hunk.c +++ b/src/unix/hunk.c @@ -71,7 +71,7 @@ void Hunk_End(memhunk_t *hunk) newsize = (hunk->cursize + 4095) & ~4095; if (newsize < hunk->maxsize) { -#ifdef _GNU_SOURCE +#if (defined __linux__) && (defined _GNU_SOURCE) void *buf = mremap(hunk->base, hunk->maxsize, newsize, 0); #else void *unmap_base = (byte *)hunk->base + newsize; |