Merge pull request #4688 from embhorn/gh4684

Fix missing include ws2tcpip.h for VS build
This commit is contained in:
Sean Parkinson
2021-12-24 11:58:12 +10:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,7 @@
#ifndef _WIN32
#include <arpa/inet.h>
#else
#include <WS2tcpip.h>
#include <ws2tcpip.h>
#endif
#endif

View File

@ -618,6 +618,9 @@
#include <winsock2.h>
#endif
#include <windows.h>
#ifndef WOLFSSL_USER_IO
#include <ws2tcpip.h> /* required for InetPton */
#endif
#endif /* WOLFSSL_SGX */
#endif
#elif defined(THREADX)