util: fix compilation on macos
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 23 Aug 2019 08:35:13 +0000 (10:35 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 23 Aug 2019 20:45:25 +0000 (23:45 +0300)
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>
src/util/u_queue.c

index 46c61eb8b7bf016f31ba90a9db4c5dcf9c8ad25e..81225a80faa46129fe691ee69269503605f05ef4 100644 (file)
@@ -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"