Mapi: Use mmap on Haiku for executable memory vs malloc

* Haiku now has DEP enabled by default.
This commit is contained in:
Alexander von Gluck IV 2013-04-29 18:08:26 -05:00
parent 39bdf08628
commit 60cc73c333

View file

@ -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>