diff mbox

[i-g-t] lib: Add missing include for sync()

Message ID 1479213282-32360-1-git-send-email-petri.latvala@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Petri Latvala Nov. 15, 2016, 12:34 p.m. UTC
Commit 721d8747e3a2 added sync() calls to igt_main and
igt_simple_main, making self-tests fail to build. #including unistd.h
in igt_core.h fixes that.

Fixes: 721d8747e3a2 ("igt: Add a test for reordering execbufs")
CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 lib/igt_core.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Chris Wilson Nov. 15, 2016, 1 p.m. UTC | #1
On Tue, Nov 15, 2016 at 02:34:42PM +0200, Petri Latvala wrote:
> Commit 721d8747e3a2 added sync() calls to igt_main and
> igt_simple_main, making self-tests fail to build. #including unistd.h
> in igt_core.h fixes that.
> 
> Fixes: 721d8747e3a2 ("igt: Add a test for reordering execbufs")
> CC: Chris Wilson <chris@chris-wilson.co.uk>
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> ---
>  lib/igt_core.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/igt_core.h b/lib/igt_core.h
> index dd7fc12..661a634 100644
> --- a/lib/igt_core.h
> +++ b/lib/igt_core.h
> @@ -39,6 +39,7 @@
>  #include <sys/types.h>
>  #include <stdarg.h>
>  #include <getopt.h>
> +#include <unistd.h>

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
Petri Latvala Nov. 15, 2016, 1:05 p.m. UTC | #2
On Tue, Nov 15, 2016 at 01:00:14PM +0000, Chris Wilson wrote:
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
> -Chris
> 


Thanks, pushed.


--
Petri Latvala
diff mbox

Patch

diff --git a/lib/igt_core.h b/lib/igt_core.h
index dd7fc12..661a634 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -39,6 +39,7 @@ 
 #include <sys/types.h>
 #include <stdarg.h>
 #include <getopt.h>
+#include <unistd.h>
 
 #ifndef IGT_LOG_DOMAIN
 #define IGT_LOG_DOMAIN (NULL)