summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/os/os_thread.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-01-23 13:44:10 +0000
committerJosé Fonseca <jfonseca@vmware.com>2014-01-23 13:44:10 +0000
commitfa75cc4b896ea16efb43c01f0e220a97773c3a2e (patch)
tree4e263bbce089fa836f4c69f267883b8a7fa1f226 /src/gallium/auxiliary/os/os_thread.h
parentcd978ce26ae9ca70a1667601e0611e43ca512bc9 (diff)
downloadexternal_mesa3d-fa75cc4b896ea16efb43c01f0e220a97773c3a2e.zip
external_mesa3d-fa75cc4b896ea16efb43c01f0e220a97773c3a2e.tar.gz
external_mesa3d-fa75cc4b896ea16efb43c01f0e220a97773c3a2e.tar.bz2
os/os_thread: Revert pipe_barrier pre-processing logic.
Whitelist platforms instead of blacklisting, as several pthread implementations are missing pthread_barrier_t, in particular MacOSX.
Diffstat (limited to 'src/gallium/auxiliary/os/os_thread.h')
-rw-r--r--src/gallium/auxiliary/os/os_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h
index 1d802d2..ff46a89 100644
--- a/src/gallium/auxiliary/os/os_thread.h
+++ b/src/gallium/auxiliary/os/os_thread.h
@@ -130,7 +130,7 @@ typedef cnd_t pipe_condvar;
* pipe_barrier
*/
-#if defined(HAVE_PTHREAD) && !defined(PIPE_OS_ANDROID)
+#if (defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HURD)) && !defined(PIPE_OS_ANDROID)
typedef pthread_barrier_t pipe_barrier;