Browse Source

Missing gating for netdb.h includes

Andras Fekete 2 months ago
parent
commit
8fcb007301
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/wolfio.c

+ 2 - 0
src/wolfio.c

@@ -41,6 +41,7 @@
 #include <wolfssl/error-ssl.h>
 #include <wolfssl/wolfio.h>
 
+#if defined(USE_WOLFSSL_IO) || defined(HAVE_HTTP_CLIENT)
 #ifndef USE_WINDOWS_API
     #if defined(WOLFSSL_LWIP) && !defined(WOLFSSL_APACHE_MYNEWT)
     #elif defined(ARDUINO)
@@ -87,6 +88,7 @@
     #endif
 
 #endif /* USE_WINDOWS_API */
+#endif /* defined(USE_WOLFSSL_IO) || defined(HAVE_HTTP_CLIENT) */
 
 
 #if defined(HAVE_HTTP_CLIENT)