aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-11 13:45:40 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-19 12:44:07 +0200
commita4c726f7869775404b0db20277de465ba82bbb2c (patch)
tree2159b648ec185bb2dd9e058f3cecc05a04a3f2c4
parentb67667cb7151a80c2afcc6e573f7a6a4cb7635e5 (diff)
downloadneard-a4c726f7869775404b0db20277de465ba82bbb2c.tar.gz
nciattach: fix poll.h include location
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@canonical.com>
-rw-r--r--tools/nciattach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nciattach.c b/tools/nciattach.c
index 370f98b..574c0fb 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>