configure.ac,plugins/common.h: update sys/poll.h -> poll.h (#2296)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Spellcheck / codespell (push) Waiting to run
Tests / Running unit and integrationt tests (push) Waiting to run
Tests / Running rpm build test on almalinux:9 (push) Waiting to run
Tests / Running rpm build test on fedora:latest (push) Waiting to run
Tests / Running rpm build test on rockylinux:8 (push) Waiting to run

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-06 06:16:54 -04:00 committed by GitHub
parent ab70d62979
commit b6021e5e37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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
/*