summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 07:48:46 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 08:39:25 -0600
commita2e435054c0d410e92d1e76a23f8d801a606537d (patch)
treef5ef82014cdd2d9b94027f02b22cbc364da8f3ff
parent75e4db18049f3284197c9a8deabd9dd74aa7920e (diff)
mesa: check for OpenBSD (bug 15604)
-rw-r--r--src/mesa/main/execmem.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c
index b40a2de8fa..0719d0051c 100644
--- 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
@@ -51,6 +51,12 @@
#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);