Win32: Fix build issues.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/359>
This commit is contained in:
Edward Lee 2021-01-21 17:47:33 -05:00
parent 8db4dff2c5
commit e12ba8eaee
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -12,7 +12,7 @@
#include <pulsecore/socket.h>
#if NTDDI_VERSION < NTDDI_VISTA
#if (_WIN32_WINNT <= 0x0600)
const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);

View file

@ -24,7 +24,7 @@
#if defined(HAVE_POLL_H)
#include <poll.h>
#elif OS_IS_WIN32 && HAVE_WINSOCK2_H && NTDDI_VERSION >= NTDDI_VISTA
#elif OS_IS_WIN32 && HAVE_WINSOCK2_H && (_WIN32_WINNT >= 0x0600)
#include <winsock2.h>
#else