configure.ac,plugins/common.h: update sys/poll.h -> poll.h

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>
     |  ^~~~~~~
This commit is contained in:
Michael Orlitzky 2026-07-03 22:15:48 -04:00
parent 26f7173923
commit 7b2816a2ef
2 changed files with 3 additions and 3 deletions

View file

@ -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])

View file

@ -115,8 +115,8 @@
#include <locale.h>
#ifdef HAVE_SYS_POLL_H
# include "sys/poll.h"
#ifdef HAVE_POLL_H
# include <poll.h>
#endif
/*