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
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
26f7173923
commit
7b2816a2ef
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