Skip to contentSkip to conversation

lib: Add missing include for sync()

PATCH In review Petri Latvala 2 participants 3 messages Nov 15, 2016 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: Add missing include for sync()

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 <[email protected]>
---
 lib/igt_core.h | 1 +
 1 file changed, 1 insertion(+)
lib/igt_core.h +1 -0
index dd7fc12..661a634 100644
@@ -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)
Signature · 6 lines
2.9.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Petri Latvala

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 <[email protected]>
---
 lib/igt_core.h | 1 +
 1 file changed, 1 insertion(+)
lib/igt_core.h +0 -0
index dd7fc12..661a634 100644

lib/igt_core.h line 42

Quoted 4 lines
lib/igt_core.h +1 -0
@@ -39,6 +39,7 @@
 #include <sys/types.h>
 #include <stdarg.h>
 #include <getopt.h>
+#include <unistd.h>

-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx