summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmael Luceno <ismael@iodev.co.uk>2024-05-19 00:39:44 +0200
committerStephen Hemminger <stephen@networkplumber.org>2024-05-23 09:27:55 -0700
commitf9601b10c21145f76c3d46c163bac39515ed2061 (patch)
treea74647177815d1b928b7016bf5ad7798e202c649
parent39e4b6f5f315680ac914187b1d5526c005b8c0d8 (diff)
Fix usage of poll.h header
Change the legacy <sys/poll.h> to <poll.h> (POSIX.1-2001). Signed-off-by: Ismael Luceno <ismael@iodev.co.uk> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--misc/arpd.c2
-rw-r--r--misc/ifstat.c2
-rw-r--r--misc/nstat.c2
-rw-r--r--misc/rtacct.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/misc/arpd.c b/misc/arpd.c
index 65ac6a38..3185620f 100644
--- a/misc/arpd.c
+++ b/misc/arpd.c
@@ -14,7 +14,7 @@
#include <netdb.h>
#include <db_185.h>
#include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/uio.h>
diff --git a/misc/ifstat.c b/misc/ifstat.c
index 9b93ded3..faebe938 100644
--- a/misc/ifstat.c
+++ b/misc/ifstat.c
@@ -17,7 +17,7 @@
#include <sys/file.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <signal.h>
diff --git a/misc/nstat.c b/misc/nstat.c
index 07d010de..fce3e9c1 100644
--- a/misc/nstat.c
+++ b/misc/nstat.c
@@ -17,7 +17,7 @@
#include <sys/file.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <signal.h>
diff --git a/misc/rtacct.c b/misc/rtacct.c
index 08363bfd..cd84b7f0 100644
--- a/misc/rtacct.c
+++ b/misc/rtacct.c
@@ -16,7 +16,7 @@
#include <sys/file.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/mman.h>