Browse Source

Restore `HAVE_NETDB_H` and `HAVE_SYS_IOCTL_H` checks in the wolfio.c.

David Garske 1 month ago
parent
commit
da6a11d1d1
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/wolfio.c

+ 6 - 2
src/wolfio.c

@@ -78,11 +78,15 @@
             #elif !defined(DEVKITPRO) && !defined(WOLFSSL_PICOTCP) \
                     && !defined(WOLFSSL_CONTIKI) && !defined(WOLFSSL_WICED) \
                     && !defined(WOLFSSL_GNRC) && !defined(WOLFSSL_RIOT_OS)
-                #include <netdb.h>
+                #ifdef HAVE_NETDB_H
+                    #include <netdb.h>
+                #endif
                 #ifdef __PPU
                     #include <netex/errno.h>
                 #else
-                    #include <sys/ioctl.h>
+                    #ifdef HAVE_SYS_IOCTL_H
+                        #include <sys/ioctl.h>
+                    #endif
                 #endif
             #endif
         #endif