summaryrefslogtreecommitdiff
path: root/games/quake2forge/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'games/quake2forge/patches/patch-ab')
-rw-r--r--games/quake2forge/patches/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/quake2forge/patches/patch-ab b/games/quake2forge/patches/patch-ab
new file mode 100644
index 00000000000..891806ef434
--- /dev/null
+++ b/games/quake2forge/patches/patch-ab
@@ -0,0 +1,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);