mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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>
This commit is contained in:
parent
f53570a7a6
commit
e7972b8943
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue