[Piglit] [PATCH v2 3/5] arb_timer_query: Add missing header

Jan Vesely jan.vesely at rutgers.edu
Fri Dec 12 09:47:56 PST 2014


v2: protect the include with guards

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 tests/spec/arb_timer_query/timestamp-get.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/spec/arb_timer_query/timestamp-get.c b/tests/spec/arb_timer_query/timestamp-get.c
index 031c7a1..bcfc3f9 100644
--- a/tests/spec/arb_timer_query/timestamp-get.c
+++ b/tests/spec/arb_timer_query/timestamp-get.c
@@ -24,6 +24,9 @@
 #include "piglit-util-gl.h"
 
 #include <inttypes.h>  /* for PRIu64 macro */
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>    /* for usleep */
+#endif
 
 /**
  * @file timestamp-get.c
-- 
2.1.0



More information about the Piglit mailing list