summaryrefslogtreecommitdiff
path: root/src/mapi
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2013-04-29 18:08:26 -0500
committerAlexander von Gluck IV <kallisti5@unixzen.com>2013-04-29 23:22:35 -0500
commit60cc73c333696b12ee5cacb9b450ffaa54555553 (patch)
tree162832b022246cbc64d29566debaf8d53b0770f9 /src/mapi
parent39bdf086286890637a1310d8b09e04d45567b8eb (diff)
Mapi: Use mmap on Haiku for executable memory vs malloc
* Haiku now has DEP enabled by default.
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/u_execmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/u_execmem.c b/src/mapi/u_execmem.c
index f2680287b63..b6751edb5dd 100644
--- a/src/mapi/u_execmem.c
+++ b/src/mapi/u_execmem.c
@@ -47,7 +47,7 @@ static unsigned int head = 0;
static unsigned char *exec_mem = (unsigned char *)0;
-#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun)
+#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) || defined(__HAIKU__)
#include <unistd.h>
#include <sys/mman.h>