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 #ifndef _WIN32
#include <arpa/inet.h> #include <arpa/inet.h>
#else #else
#include <WS2tcpip.h> #include <ws2tcpip.h>
#endif #endif
#endif #endif

View File

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