diff options
Diffstat (limited to 'lib/mesa/src')
-rw-r--r-- | lib/mesa/src/util/simple_mtx.h | 4 | ||||
-rw-r--r-- | lib/mesa/src/util/u_queue.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/mesa/src/util/simple_mtx.h b/lib/mesa/src/util/simple_mtx.h index cfb82ba56..1f55fc516 100644 --- a/lib/mesa/src/util/simple_mtx.h +++ b/lib/mesa/src/util/simple_mtx.h @@ -28,7 +28,7 @@ #include "c11/threads.h" -#if defined(__GNUC__) && defined(HAVE_LINUX_FUTEX_H) +#if defined(__GNUC__) && defined(USE_FUTEX) /* mtx_t - Fast, simple mutex * @@ -61,7 +61,7 @@ typedef struct { #define _SIMPLE_MTX_INITIALIZER_NP { 0 } static inline void -simple_mtx_init(simple_mtx_t *mtx, MAYBE_UNUSED int type) +simple_mtx_init(simple_mtx_t *mtx, ASSERTED int type) { assert(type == mtx_plain); diff --git a/lib/mesa/src/util/u_queue.h b/lib/mesa/src/util/u_queue.h index 2d269099c..a24647ea9 100644 --- a/lib/mesa/src/util/u_queue.h +++ b/lib/mesa/src/util/u_queue.h @@ -50,7 +50,7 @@ extern "C" { #define UTIL_QUEUE_INIT_RESIZE_IF_FULL (1 << 1) #define UTIL_QUEUE_INIT_SET_FULL_THREAD_AFFINITY (1 << 2) -#if defined(__GNUC__) && defined(HAVE_LINUX_FUTEX_H) +#if defined(__GNUC__) && defined(USE_FUTEX) #define UTIL_QUEUE_FENCE_FUTEX #else #define UTIL_QUEUE_FENCE_STANDARD |