mirror of
https://github.com/curl/curl.git
synced 2026-08-15 10:03:41 +03:00
check availability of poll.h header at configuration time, and include
it when sys/poll.h is unavailable
This commit is contained in:
parent
727e23322f
commit
bdb2beb8e4
5 changed files with 17 additions and 3 deletions
|
|
@ -1865,6 +1865,7 @@ AC_CHECK_HEADERS(
|
|||
utime.h \
|
||||
sys/utime.h \
|
||||
sys/poll.h \
|
||||
poll.h \
|
||||
sys/resource.h \
|
||||
libgen.h \
|
||||
locale.h \
|
||||
|
|
@ -2127,6 +2128,8 @@ if test "$disable_poll" = "no"; then
|
|||
AC_RUN_IFELSE([
|
||||
#ifdef HAVE_SYS_POLL_H
|
||||
#include <sys/poll.h>
|
||||
#elif defined(HAVE_POLL_H)
|
||||
#include <poll.h>
|
||||
#endif
|
||||
|
||||
int main(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue