Restore HAVE_NETDB_H and HAVE_SYS_IOCTL_H checks in the wolfio.c.

This commit is contained in:
David Garske
2024-04-01 09:49:22 -07:00
parent d930825a92
commit da6a11d1d1

View File

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