[Mesa-dev] [PATCH 2/3] Mapi: Use mmap on Haiku for executable memory vs malloc
Alexander von Gluck IV
kallisti5 at unixzen.com
Mon Apr 29 17:03:50 PDT 2013
* 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 f268028..b6751ed 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>
--
1.8.2.2
More information about the mesa-dev
mailing list