From: Brian Paul Date: Wed, 9 Jul 2008 13:48:46 +0000 (-0600) Subject: mesa: check for OpenBSD (bug 15604) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2e435054c0d410e92d1e76a23f8d801a606537d;p=mesa.git mesa: check for OpenBSD (bug 15604) --- diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c index b40a2de8fa4..0719d0051c3 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 #endif + +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + + #define EXEC_HEAP_SIZE (10*1024*1024) _glthread_DECLARE_STATIC_MUTEX(exec_mutex);