util: #include "c11/threads.h" when necessary in simple_mtx.h

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18425>
This commit is contained in:
Yonggang Luo 2022-08-24 03:32:57 +08:00 committed by Marge Bot
parent eb6668ee86
commit 2b2b8ac64e

View file

@ -29,10 +29,7 @@
#include "util/u_call_once.h"
#include "u_atomic.h"
#include "c11/threads.h"
#if UTIL_FUTEX_SUPPORTED
#if defined(HAVE_VALGRIND) && !defined(NDEBUG)
# include <valgrind.h>
# include <helgrind.h>
@ -40,7 +37,8 @@
#else
# define HG(x)
#endif
#else /* !UTIL_FUTEX_SUPPORTED */
# include "c11/threads.h"
#endif /* UTIL_FUTEX_SUPPORTED */
#ifdef __cplusplus