[PATCH i-g-t v2 2/7] lib: use poll.h in includes

Reagan Bohan reagan at ourmail.work
Sat Apr 27 11:18:40 UTC 2024


sys/poll.h is non-standard and including it on musl produces a warning.

Signed-off-by: Reagan Bohan <reagan at ourmail.work>
---
 lib/dmabuf_sync_file.h | 2 +-
 lib/igt_aux.c          | 2 +-
 lib/igt_dummyload.c    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/dmabuf_sync_file.h b/lib/dmabuf_sync_file.h
index d642ff30c..e115b5f94 100644
--- a/lib/dmabuf_sync_file.h
+++ b/lib/dmabuf_sync_file.h
@@ -9,7 +9,7 @@
 #ifdef __linux__
 #include <linux/dma-buf.h>
 #endif
-#include <sys/poll.h>
+#include <poll.h>
 #include <stdbool.h>
 #include <stdint.h>
 
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index d6aeb876b..e7210e5be 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -39,10 +39,10 @@
 #include <sys/mman.h>
 #include <signal.h>
 #include <pciaccess.h>
+#include <poll.h>
 #include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
-#include <sys/poll.h>
 #include <sys/wait.h>
 #include <sys/resource.h>
 #include <sys/time.h>
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index 2e842929b..a9a2de077 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -24,8 +24,8 @@
 
 #include <time.h>
 #include <signal.h>
+#include <poll.h>
 #include <pthread.h>
-#include <sys/poll.h>
 #include <sys/timerfd.h>
 
 #include <i915_drm.h>
-- 
2.43.2



More information about the igt-dev mailing list