mirror of https://github.com/getdnsapi/getdns.git
platform: Prefer poll.h to sys/poll.h
sys/poll.h seems to be some GNU extension. musl warns about this: warning redirecting incorrect #include <sys/poll.h> to <poll.h> Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
9050f63d5b
commit
3f6203bf0f
|
@ -62,10 +62,10 @@ typedef u_short sa_family_t;
|
||||||
const char *_getdns_strerror(DWORD errnum);
|
const char *_getdns_strerror(DWORD errnum);
|
||||||
#else /* USE_WINSOCK */
|
#else /* USE_WINSOCK */
|
||||||
|
|
||||||
#ifdef HAVE_SYS_POLL_H
|
#ifndef HAVE_SYS_POLL_H
|
||||||
# include <sys/poll.h>
|
|
||||||
#else
|
|
||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
|
#else
|
||||||
|
# include <sys/poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _getdns_EINTR (EINTR)
|
#define _getdns_EINTR (EINTR)
|
||||||
|
|
Loading…
Reference in New Issue