mesa: check for OpenBSD (bug 15604)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 13:48:46 +0000 (07:48 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 14:39:25 +0000 (08:39 -0600)
src/mesa/main/execmem.c

index b40a2de8fa42bc5dbfc7480bbe50e3d77a0681a1..0719d0051c3bb31116d83db5e1590f11935858ab 100644 (file)
@@ -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
 #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);