[Mesa-dev] [PATCH] mesa: Make Haiku use mmap vs simple malloc for exec memory

Alexander von Gluck IV kallisti5 at unixzen.com
Fri Apr 26 19:48:22 PDT 2013


* Haiku recently got DEP support which can result in the
  OS locking down execution in non-exec flagged memory.
---
 src/mesa/main/execmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c
index bb9c70a..5f31966 100644
--- a/src/mesa/main/execmem.c
+++ b/src/mesa/main/execmem.c
@@ -37,7 +37,7 @@
 
 
 
-#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun)
+#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) || defined(__HAIKU__)
 
 /*
  * Allocate a large block of memory which can hold code then dole it out
-- 
1.8.2.1



More information about the mesa-dev mailing list