From 19c6c040b11d7a7068c66ae918a88c150243279b Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Tue, 9 Jan 2018 12:11:24 +0200 Subject: lib/igt_kms.c: Unconditionally include poll.h Commit 98c64b33a793 ("lib/igt_kms: Drop all stale events on first commit.") added a use of poll() to igt_kms.c, but that file only includes poll.h when HAVE_UDEV is defined. Move the include outside the UDEV conditional. Fixes: 98c64b33a793 ("lib/igt_kms: Drop all stale events on first commit.") Signed-off-by: Petri Latvala Cc: Maarten Lankhorst Cc: Chris Wilson Reviewed-by: Chris Wilson Reviewed-by: Rhys Kidd --- lib/igt_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/igt_kms.c b/lib/igt_kms.c index ec3b7167..069752ec 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -40,8 +40,8 @@ #endif #ifdef HAVE_UDEV #include -#include #endif +#include #include #include -- cgit v1.2.3