From: Alexander von Gluck IV Date: Mon, 29 Apr 2013 23:08:02 +0000 (-0500) Subject: Mesa: Use mmap on Haiku for executable memory vs malloc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39bdf086286890637a1310d8b09e04d45567b8eb;p=mesa.git Mesa: Use mmap on Haiku for executable memory vs malloc * Haiku now has DEP enabled by default. --- diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c index bb9c70a4008..5f319661e11 100644 --- a/src/mesa/main/execmem.c +++ b/src/mesa/main/execmem.c @@ -37,7 +37,7 @@ -#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) +#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) || defined(__HAIKU__) /* * Allocate a large block of memory which can hold code then dole it out