Mesa (master): util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD.

Brian Paul brianp at kemper.freedesktop.org
Thu Oct 1 14:42:40 UTC 2009


Module: Mesa
Branch: master
Commit: 908ecb3faa6345392307a1d21b3bef9d5c513f12
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=908ecb3faa6345392307a1d21b3bef9d5c513f12

Author: Robert Noland <rnoland at 2hip.net>
Date:   Wed Sep 30 09:36:18 2009 -0700

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 <rnoland at 2hip.net>

---

 src/gallium/include/pipe/p_config.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
index 78fe1f4..f6feea5 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




More information about the mesa-commit mailing list