poll.h header should not be included from include/sys. This works fine
on Glibc but fails on musl:
In file included from tools/nciattach.c:42:
/usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include
<sys/poll.h> to <poll.h> [-Werror=cpp]
1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski(a)canonical.com>
---
tools/nciattach.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/nciattach.c b/tools/nciattach.c
index 370f98bb176c..574c0fbe784a 100644
--- a/tools/nciattach.c
+++ b/tools/nciattach.c
@@ -32,6 +32,7 @@
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
+#include <poll.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
@@ -39,7 +40,6 @@
#include <termios.h>
#include <time.h>
#include <sys/time.h>
-#include <sys/poll.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <termios.h>
--
2.27.0