From 60cc73c333696b12ee5cacb9b450ffaa54555553 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 29 Apr 2013 18:08:26 -0500 Subject: Mapi: Use mmap on Haiku for executable memory vs malloc * Haiku now has DEP enabled by default. --- src/mapi/u_execmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #include -- cgit v1.2.3