win32: Fix duplicate definitions in arpa-inet.h, arpa-inet.c, and poll.h

When _WIN32_WINNT >= 0x6000 (Vista), ws2tcpip.h provides inet_ntop and
inet_pton, and winsock2.h provides the equivalent of poll.h.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/458>
This commit is contained in:
Patrick Gaskin 2021-01-03 04:07:05 -05:00 committed by PulseAudio Marge Bot
parent 0edcf725bc
commit fc002e4dc6
3 changed files with 8 additions and 2 deletions

View file

@ -21,7 +21,7 @@
#include <config.h>
#endif
#if !defined(HAVE_ARPA_INET_H) && defined(OS_IS_WIN32)
#if !defined(HAVE_ARPA_INET_H) && defined(OS_IS_WIN32) && NTDDI_VERSION < NTDDI_VISTA
#include <errno.h>