util/u_thread: fix compilation on Mac OS
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 10 Nov 2017 11:36:16 +0000 (12:36 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 10 Nov 2017 15:37:54 +0000 (16:37 +0100)
commite7972b89432600ebe38e6eb67b9b65c1f34dfdc1
tree6186151b3c0c8ae83d55912089ac15f3a1a534c8
parentf53570a7a6155c42a9cc536948f26cb18dd9f32e
util/u_thread: fix compilation on Mac OS

Apparently, it doesn't have pthread barriers.

p_config.h (which was originally used to guard this code) uses the
__APPLE__ macro to detect Mac OS.

Fixes: f0d3a4de75 ("util: move pipe_barrier into src/util and rename to util_barrier")
Cc: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/util/u_thread.h