Browse Source

Missing gating for netdb.h includes

Andras Fekete 2 tháng trước cách đây
mục cha
commit
8fcb007301
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)