Only include ws2tcpip.h if not user IO.

This commit is contained in:
David Garske
2021-12-23 15:25:25 -08:00
parent 713c4afcb4
commit 1e4b13dfac
2 changed files with 4 additions and 2 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,7 +618,9 @@
#include <winsock2.h>
#endif
#include <windows.h>
#include <ws2tcpip.h>
#ifndef WOLFSSL_USER_IO
#include <ws2tcpip.h> /* required for InetPton */
#endif
#endif /* WOLFSSL_SGX */
#endif
#elif defined(THREADX)