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:
Rosen Penev 2019-11-03 14:30:34 -08:00 committed by GitHub
parent 9050f63d5b
commit 3f6203bf0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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)