util/u_queue: really use futex-based fences
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 10 Nov 2017 11:32:44 +0000 (12:32 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 20 Nov 2017 17:15:53 +0000 (18:15 +0100)
The relevant define changed in the final revision of the simple mutex
patch.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/util/u_queue.h

index 57753bd31bca8f3ac102ba39d2dd326a1883691c..d49f713e6ad3b49ad1e458170c275c13393bdab0 100644 (file)
@@ -49,7 +49,7 @@ extern "C" {
 #define UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY      (1 << 0)
 #define UTIL_QUEUE_INIT_RESIZE_IF_FULL            (1 << 1)
 
-#if defined(__GNUC__) && defined(HAVE_FUTEX)
+#if defined(__GNUC__) && defined(HAVE_LINUX_FUTEX_H)
 #define UTIL_QUEUE_FENCE_FUTEX
 #else
 #define UTIL_QUEUE_FENCE_STANDARD