projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57f2d07
)
mesa: check for OpenBSD (bug 15604)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 14:48:41 +0000
(08:48 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 14:48:41 +0000
(08:48 -0600)
cherry-picked from master
src/mesa/main/execmem.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/execmem.c
b/src/mesa/main/execmem.c
index 40f66d7da2d5d64b94ece7cd14908694630239e4..aa40b0220511dfad03b56ca3fb3113855848d3e6 100644
(file)
--- a/
src/mesa/main/execmem.c
+++ b/
src/mesa/main/execmem.c
@@
-36,7
+36,7
@@
-#if defined(__linux__)
+#if defined(__linux__)
|| defined(__OpenBSD__)
/*
* Allocate a large block of memory which can hold code then dole it out
@@
-47,6
+47,16
@@
#include <sys/mman.h>
#include "mm.h"
+#ifdef MESA_SELINUX
+#include <selinux/selinux.h>
+#endif
+
+
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
+
#define EXEC_HEAP_SIZE (10*1024*1024)
_glthread_DECLARE_STATIC_MUTEX(exec_mutex);