mirror of
https://github.com/curl/curl.git
synced 2026-07-23 08:17:17 +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
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -47,6 +47,8 @@
|
|||
#endif
|
||||
#ifdef HAVE_SYS_POLL_H
|
||||
#include <sys/poll.h>
|
||||
#elif defined(HAVE_POLL_H)
|
||||
#include <poll.h>
|
||||
#endif
|
||||
|
||||
#define ENABLE_CURLX_PRINTF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue