From: Robert Noland Date: Wed, 30 Sep 2009 16:36:18 +0000 (-0700) Subject: util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=908ecb3faa6345392307a1d21b3bef9d5c513f12;p=mesa.git util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD. Since the various BSDs use some different features here, define PIPE_OS_OPENBSD and PIPE_OS_NETBSD as well Signed-off-by: Robert Noland --- diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h index 78fe1f4c87a..f6feea5f74d 100644 --- a/src/gallium/include/pipe/p_config.h +++ b/src/gallium/include/pipe/p_config.h @@ -126,6 +126,19 @@ #endif #if defined(__FreeBSD__) +#define PIPE_OS_FREEBSD +#define PIPE_OS_BSD +#define PIPE_OS_UNIX +#endif + +#if defined(__OpenBSD__) +#define PIPE_OS_OPENBSD +#define PIPE_OS_BSD +#define PIPE_OS_UNIX +#endif + +#if defined(__NetBSD__) +#define PIPE_OS_NETBSD #define PIPE_OS_BSD #define PIPE_OS_UNIX #endif