projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39bdf08
)
Mapi: Use mmap on Haiku for executable memory vs malloc
author
Alexander von Gluck IV
<kallisti5@unixzen.com>
Mon, 29 Apr 2013 23:08:26 +0000
(18:08 -0500)
committer
Alexander von Gluck IV
<kallisti5@unixzen.com>
Tue, 30 Apr 2013 04:22:35 +0000
(23:22 -0500)
* Haiku now has DEP enabled by default.
src/mapi/u_execmem.c
patch
|
blob
|
history
diff --git
a/src/mapi/u_execmem.c
b/src/mapi/u_execmem.c
index f2680287b633121048de9fd41565029b4d3516bd..b6751edb5dd51c33e6d3c101a0f8781804e5cbc6 100644
(file)
--- 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>