From: Alexander von Gluck IV Date: Mon, 29 Apr 2013 23:08:26 +0000 (-0500) Subject: Mapi: Use mmap on Haiku for executable memory vs malloc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60cc73c333696b12ee5cacb9b450ffaa54555553;p=mesa.git Mapi: Use mmap on Haiku for executable memory vs malloc * Haiku now has DEP enabled by default. --- diff --git a/src/mapi/u_execmem.c b/src/mapi/u_execmem.c index f2680287b63..b6751edb5dd 100644 --- a/src/mapi/u_execmem.c +++ b/src/mapi/u_execmem.c @@ -47,7 +47,7 @@ static unsigned int head = 0; static unsigned char *exec_mem = (unsigned char *)0; -#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) +#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) || defined(__HAIKU__) #include #include