summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Noland <[email protected]>2009-09-30 09:36:18 -0700
committerBrian Paul <[email protected]>2009-10-01 08:40:30 -0600
commit908ecb3faa6345392307a1d21b3bef9d5c513f12 (patch)
tree2c69185ec657fb5e8e889d392b183e258b2f9b77 /src
parentf8d8f4527884d018a51daf8cc6281b52ce083b9e (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/include/pipe/p_config.h13
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 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