mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
mesa: check for OpenBSD (bug 15604)
cherry-picked from master
This commit is contained in:
parent
57f2d071d1
commit
520dbdea22
1 changed files with 11 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue