b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- a/configure.ac |
| 2 | +++ b/configure.ac |
| 3 | @@ -23,7 +23,7 @@ AC_HEADER_SYS_WAIT |
| 4 | AC_CHECK_HEADERS([arpa/inet.h errno.h malloc.h \ |
| 5 | stddef.h stdlib.h string.h sys/socket.h \ |
| 6 | sys/time.h syslog.h unistd.h time.h \ |
| 7 | - assert.h sys/poll.h signal.h pwd.h grp.h stdarg.h\ |
| 8 | + assert.h poll.h signal.h pwd.h grp.h stdarg.h\ |
| 9 | limits.h sys/wait.h sched.h sys/ioctl.h sys/uio.h]) |
| 10 | AC_HEADER_TIME |
| 11 | |
| 12 | --- a/src/apinger.c |
| 13 | +++ b/src/apinger.c |
| 14 | @@ -33,8 +33,8 @@ |
| 15 | #ifdef HAVE_SYS_WAIT_H |
| 16 | # include <sys/wait.h> |
| 17 | #endif |
| 18 | -#ifdef HAVE_SYS_POLL_H |
| 19 | -# include <sys/poll.h> |
| 20 | +#ifdef HAVE_POLL_H |
| 21 | +# include <poll.h> |
| 22 | #endif |
| 23 | #ifdef HAVE_ARPA_INET_H |
| 24 | # include <arpa/inet.h> |