mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-07-06 23:51:46 -04:00
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
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:
parent
ab70d62979
commit
b6021e5e37
2 changed files with 3 additions and 3 deletions
|
|
@ -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])
|
||||
|
||||
|
|
|
|||
|
|
@ -115,8 +115,8 @@
|
|||
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef HAVE_SYS_POLL_H
|
||||
# include "sys/poll.h"
|
||||
#ifdef HAVE_POLL_H
|
||||
# include <poll.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue