diff options
author | Vinson Lee <vlee@freedesktop.org> | 2016-11-03 14:25:16 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2016-11-04 15:00:41 -0700 |
commit | 52fa3545035ce7c7520dcfaab69bc165d281b21c (patch) | |
tree | b675ba5146991a17f8e63bc605e939c0fc23665a /tests/util | |
parent | 3ba2ddd3a8b71ca7420fa10e9ad5a0415e197ca3 (diff) |
util: Include time.h on all platforms.
Fix MinGW build error.
piglit-util.c: In function 'piglit_time_is_monotonic':
piglit-util.c:583:18: error: storage size of 't' isn't known
struct timespec t;
^
Fixes: e0048f4940f7 ("util: Add piglit_delay_ns() api")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98486
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/util')
-rw-r--r-- | tests/util/piglit-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c index ef955b97d..6becfa664 100644 --- a/tests/util/piglit-util.c +++ b/tests/util/piglit-util.c @@ -32,7 +32,6 @@ #include <unistd.h> #include <sys/types.h> #include <sys/syscall.h> -#include <time.h> #endif #include <assert.h> @@ -42,6 +41,7 @@ #include <string.h> #include <errno.h> #include <inttypes.h> +#include <time.h> #if defined(PIGLIT_HAS_POSIX_CLOCK_MONOTONIC) && defined(PIGLIT_HAS_POSIX_TIMER_NOTIFY_THREAD) #include <pthread.h> |