summaryrefslogtreecommitdiff
path: root/src/mapi/u_execmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/u_execmem.c')
-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>