From 2b2b8ac64eae2352b02c5462e1ccdc8e9f60a1aa Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Wed, 24 Aug 2022 03:32:57 +0800 Subject: [PATCH] util: #include "c11/threads.h" when necessary in simple_mtx.h Signed-off-by: Yonggang Luo Reviewed-by: Jesse Natalie Part-of: --- src/util/simple_mtx.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util/simple_mtx.h b/src/util/simple_mtx.h index 90092d7a534..cddf86e8315 100644 --- a/src/util/simple_mtx.h +++ b/src/util/simple_mtx.h @@ -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 # include @@ -40,7 +37,8 @@ #else # define HG(x) #endif - +#else /* !UTIL_FUTEX_SUPPORTED */ +# include "c11/threads.h" #endif /* UTIL_FUTEX_SUPPORTED */ #ifdef __cplusplus