Had to mess with _WIN32_WINNT to get inet_pton defined

So we change it to 0x0600 and then back to 0x0502
https://github.com/Hamlib/Hamlib/issues/298
pull/345/head
Michael Black W9MDB 2020-06-21 23:51:02 -05:00
rodzic d27d84c44b
commit 0f97f33877
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -61,7 +61,13 @@
# include <sys/socket.h>
# include <sys/ioctl.h>
#elif HAVE_WS2TCPIP_H
#undef _WIN32_WINNT
// We need inet_pton to get defined and 0x0600 does it
#define _WIN32_WINNT 0x0600
# include <ws2tcpip.h>
#undef _WIN32_WINNT
// Then we'll go back to Server 2003
#define _WIN32_WINNT 0x0502
# if defined(HAVE_WSPIAPI_H)
# include <wspiapi.h>
# endif