[Mesa-dev] [PATCH 1/6] pipe: Detect FreeBSD better

Corbin Simpson mostawesomedude at gmail.com
Thu Jun 24 01:07:17 PDT 2010


On Wed, Jun 23, 2010 at 6:31 PM, nobled <nobled at dreamwidth.org> wrote:
> Taking advice from the Debian BSD porting guide:
> http://glibc-bsd.alioth.debian.org/porting/PORTING
>
> This should help fix Debian bug #585618 (gallium build failure).
> ---
>  src/gallium/include/pipe/p_config.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> diff --git a/src/gallium/include/pipe/p_config.h
> b/src/gallium/include/pipe/p_config.h
> index b81702a..68025fa 100644
> --- a/src/gallium/include/pipe/p_config.h
> +++ b/src/gallium/include/pipe/p_config.h
> @@ -128,7 +128,7 @@
>  #define PIPE_OS_UNIX
>  #endif
>
> -#if defined(__FreeBSD__)
> +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
>  #define PIPE_OS_FREEBSD
>  #define PIPE_OS_BSD
>  #define PIPE_OS_UNIX
> --
> 1.5.4.3

Looks reasonable; does this actually work for you? I'd like somebody
to test first.

~ C.

-- 
When the facts change, I change my mind. What do you do, sir? ~ Keynes

Corbin Simpson
<MostAwesomeDude at gmail.com>


More information about the mesa-dev mailing list