diff options
author | Nicolai Hähnle <[email protected]> | 2017-11-10 12:36:16 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-11-10 16:37:54 +0100 |
commit | e7972b89432600ebe38e6eb67b9b65c1f34dfdc1 (patch) | |
tree | 6186151b3c0c8ae83d55912089ac15f3a1a534c8 /src | |
parent | f53570a7a6155c42a9cc536948f26cb18dd9f32e (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/util/u_thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_thread.h b/src/util/u_thread.h index e484d8aa74f..26cc0b0934b 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -104,7 +104,7 @@ static inline bool u_thread_is_self(thrd_t thread) * util_barrier */ -#if defined(HAVE_PTHREAD) +#if defined(HAVE_PTHREAD) && !defined(__APPLE__) typedef pthread_barrier_t util_barrier; |