lib: Add missing include for sync()
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]>
Signed-off-by Petri Latvala <[email protected]>
--- lib/igt_core.h | 1 + 1 file changed, 1 insertion(+)
lib/igt_core.h +1 -0
@@ -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
Quoted 16 lines · Petri Latvala
Commit
721d8747e3a2addedsync()calls toigt_mainandigt_simple_main, making self-tests fail to build. #includingunistd.hinigt_core.hfixes that.Fixes 721d8747e3a2 ("igt: Add a test for reordering execbufs")CC Chris Wilson <[email protected]>Signed-off-by Petri Latvala <[email protected]>--- lib/igt_core.h | 1 + 1 file changed, 1 insertion(+)lib/igt_core.h +0
-0
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>
Reviewed-by Chris Wilson <[email protected]>
-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
Quoted 3 lines · Chris Wilson
Reviewed-by Chris Wilson <[email protected]>-Chris
Thanks, pushed.
--
Petri Latvala
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx