73c50fd1d5
Add DragonFly support.
13 lines
707 B
Text
13 lines
707 B
Text
$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);
|