[monitoring-plugins] configure.ac,plugins/common.h: update sys/poll.h ...
GitHub
git at monitoring-plugins.org
Mon Jul 6 12:20:13 CEST 2026
Module: monitoring-plugins
Branch: master
Commit: b6021e5e372ba9219684a809e73a20f50e50caca
Author: Michael Orlitzky <michael at orlitzky.com>
Committer: GitHub <noreply at github.com>
Date: Mon Jul 6 06:16:54 2026 -0400
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=b6021e5e
configure.ac,plugins/common.h: update sys/poll.h -> poll.h (#2296)
Make this warning go away:
In file included from ../plugins/common.h:119,
from check_icmp.c:46:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect
#include <sys/poll.h> to <poll.h> [-Wcpp]
1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
| ^~~~~~~
---
configure.ac | 2 +-
plugins/common.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index b17ac68b..0d31667a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -598,7 +598,7 @@ dnl Checks for header files.
dnl
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(signal.h syslog.h uio.h errno.h sys/time.h sys/socket.h sys/un.h sys/poll.h)
+AC_CHECK_HEADERS(signal.h syslog.h uio.h errno.h sys/time.h sys/socket.h sys/un.h poll.h)
AC_CHECK_HEADERS(features.h stdarg.h sys/unistd.h ctype.h)
AC_CHECK_HEADERS_ONCE([sys/time.h])
diff --git a/plugins/common.h b/plugins/common.h
index 577f70fe..a6c24d48 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -115,8 +115,8 @@
#include <locale.h>
-#ifdef HAVE_SYS_POLL_H
-# include "sys/poll.h"
+#ifdef HAVE_POLL_H
+# include <poll.h>
#endif
/*
More information about the Commits
mailing list