diff --git a/wolfssl/internal.h b/wolfssl/internal.h index 07b75f2d6..6ee042ba5 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -6806,7 +6806,8 @@ WOLFSSL_LOCAL word32 MacSize(const WOLFSSL* ssl); WOLFSSL_LOCAL int DoClientHelloStateless(WOLFSSL* ssl, const byte* input, word32 helloSz, byte isFirstCHFrag, byte* tls13); #endif /* !defined(NO_WOLFSSL_SERVER) */ -#if !defined(WOLFCRYPT_ONLY) && defined(USE_WOLFSSL_IO) +#if !defined(WOLFCRYPT_ONLY) && \ + (defined(USE_WOLFSSL_IO) || defined(WOLFSSL_USER_IO)) WOLFSSL_LOCAL int sockAddrEqual(SOCKADDR_S *a, XSOCKLENT aLen, SOCKADDR_S *b, XSOCKLENT bLen); #endif diff --git a/wolfssl/wolfio.h b/wolfssl/wolfio.h index 0673b88ad..3a01e6693 100644 --- a/wolfssl/wolfio.h +++ b/wolfssl/wolfio.h @@ -50,9 +50,8 @@ #endif #endif - -#if defined(USE_WOLFSSL_IO) || defined(HAVE_HTTP_CLIENT) - +#if defined(USE_WOLFSSL_IO) || defined(WOLFSSL_USER_IO) || \ + defined(HAVE_HTTP_CLIENT) #ifdef HAVE_LIBZ #include "zlib.h" #endif @@ -82,6 +81,8 @@ #include #endif #elif defined(USE_WINDOWS_API) + #include + #include #else #if defined(WOLFSSL_LWIP) && !defined(WOLFSSL_APACHE_MYNEWT) /* lwIP needs to be configured to use sockets API in this mode */ @@ -219,7 +220,6 @@ #if defined(WOLFSSL_EMBOS) #include #endif - #endif /* USE_WINDOWS_API */ #ifdef __sun