OSDN Git Service

gallium: fix build on GNU/kFreeBSD
authorFabio Pedretti <fabio.ped@libero.it>
Wed, 6 Nov 2013 09:55:28 +0000 (10:55 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 6 Nov 2013 21:08:26 +0000 (22:08 +0100)
Patch from Debian package

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
src/gallium/auxiliary/rtasm/rtasm_execmem.c
src/gallium/include/pipe/p_config.h

index 3c4b048..edc1b66 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "rtasm_execmem.h"
 
-#if defined(PIPE_OS_BSD)
+#ifndef MAP_ANONYMOUS
 #define MAP_ANONYMOUS MAP_ANON
 #endif
 
index 9bccf32..64acd02 100644 (file)
 #define PIPE_OS_ANDROID
 #endif
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #define PIPE_OS_FREEBSD
 #define PIPE_OS_BSD
 #define PIPE_OS_UNIX