summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2019-08-23 10:35:13 +0200
committerDylan Baker <dylan@pnwbakers.com>2019-09-04 11:54:45 -0700
commit7ff682a12cab5fc814fa142a8daf625ac00ed2e9 (patch)
treeeac7a9f28cb0ad6c0d47ecdc3bd5aad9c73a5f7d
parent9fff4192bc83d9834d330eec66032dc11a924c2f (diff)
downloadmesa-7ff682a12cab5fc814fa142a8daf625ac00ed2e9.tar.gz
util: fix compilation on macos
timespec_get() is not available on macos, we need to pull in the include/c11/threads_posix.h helper. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103674 Fixes: e2d761de03 ("util: drop final reference to p_compiler.h") Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> (cherry picked from commit 9d3fc737afcb98e3882b4d54c9d093980cfb4874)
-rw-r--r--src/util/u_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_queue.c b/src/util/u_queue.c
index 46c61eb8b7b..81225a80faa 100644
--- a/src/util/u_queue.c
+++ b/src/util/u_queue.c
@@ -26,7 +26,7 @@
#include "u_queue.h"
-#include <time.h>
+#include "c11/threads.h"
#include "util/os_time.h"
#include "util/u_string.h"