From b6021e5e372ba9219684a809e73a20f50e50caca Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 6 Jul 2026 06:16:54 -0400 Subject: [PATCH] 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 to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ --- 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 -#ifdef HAVE_SYS_POLL_H -# include "sys/poll.h" +#ifdef HAVE_POLL_H +# include #endif /*