1 --- a/src/gallium/auxiliary/rtasm/rtasm_execmem.c
2 +++ b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
5 #include "rtasm_execmem.h"
7 -#if defined(PIPE_OS_BSD)
9 #define MAP_ANONYMOUS MAP_ANON
12 --- a/src/gallium/include/pipe/p_config.h
13 +++ b/src/gallium/include/pipe/p_config.h
18 -#if defined(__FreeBSD__)
19 +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
20 #define PIPE_OS_FREEBSD