summaryrefslogtreecommitdiff
path: root/games/quake2forge/patches/patch-ab
blob: 891806ef43490301e829a34d8387efbaa686c6bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.3 2007/02/19 19:16:09 joerg Exp $

--- src/q_sh.c.orig	2007-02-19 18:37:48.000000000 +0000
+++ src/q_sh.c
@@ -54,7 +54,7 @@ void *Hunk_Begin (int maxsize)
 /* FIXME: clean all this up into configure tests for mmap, MAP_ANONYMOUS and malloc */
 #if defined(__linux__)
 	membase = mmap(0, maxhunksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
-#elif defined(__FreeBSD__) || defined(__bsd__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__bsd__) || defined(__NetBSD__) || defined(__DragonFly__)
 	membase = mmap(0, maxhunksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0);
 #elif defined(__sun__) || defined(__sgi)
 	membase = malloc(maxhunksize);