[PATCH] lib: use <poll.h> rather than <sys/poll.h>
Colin King
colin.king at canonical.com
Sun Sep 12 00:15:29 UTC 2021
From: Colin Ian King <colin.king at canonical.com>
Should be using poll.h, fixes musl C builds and is the correct
way to pick up the poll definitions.
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/src/fwts_ipmi.c | 2 +-
src/lib/src/fwts_pipeio.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/src/fwts_ipmi.c b/src/lib/src/fwts_ipmi.c
index ca7c55bb..9809651e 100644
--- a/src/lib/src/fwts_ipmi.c
+++ b/src/lib/src/fwts_ipmi.c
@@ -21,7 +21,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/ioctl.h>
#include <linux/ipmi.h>
diff --git a/src/lib/src/fwts_pipeio.c b/src/lib/src/fwts_pipeio.c
index 716297c4..f0a49917 100644
--- a/src/lib/src/fwts_pipeio.c
+++ b/src/lib/src/fwts_pipeio.c
@@ -32,7 +32,7 @@
#include <paths.h>
#include <sys/param.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
--
2.32.0
More information about the fwts-devel
mailing list