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

Vinson Lee vlee at freedesktop.org
Tue Dec 9 07:34:19 PST 2014


On Wed, Dec 3, 2014 at 12:53 PM, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
>  tests/spec/arb_timer_query/timestamp-get.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/spec/arb_timer_query/timestamp-get.c b/tests/spec/arb_timer_query/timestamp-get.c
> index 031c7a1..98a58d2 100644
> --- a/tests/spec/arb_timer_query/timestamp-get.c
> +++ b/tests/spec/arb_timer_query/timestamp-get.c
> @@ -24,6 +24,7 @@
>  #include "piglit-util-gl.h"
>
>  #include <inttypes.h>  /* for PRIu64 macro */
> +#include <unistd.h>    /* for usleep */
>
>  /**
>   * @file timestamp-get.c
> --
> 1.9.3
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


Windows does not have unistd.h so it needs to be checked for before inclusion.

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif


More information about the Piglit mailing list