diff options
author | Alexander von Gluck IV <[email protected]> | 2013-04-29 18:08:26 -0500 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2013-04-29 23:22:35 -0500 |
commit | 60cc73c333696b12ee5cacb9b450ffaa54555553 (patch) | |
tree | 162832b022246cbc64d29566debaf8d53b0770f9 /src | |
parent | 39bdf086286890637a1310d8b09e04d45567b8eb (diff) |
Mapi: Use mmap on Haiku for executable memory vs malloc
* Haiku now has DEP enabled by default.
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/u_execmem.c | 2 |
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> |