Mapi: Use mmap on Haiku for executable memory vs malloc
* Haiku now has DEP enabled by default.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user