Skip to content

Commit da6a11d

Browse files
committed
Restore HAVE_NETDB_H and HAVE_SYS_IOCTL_H checks in the wolfio.c.
1 parent d930825 commit da6a11d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/wolfio.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@
7878
#elif !defined(DEVKITPRO) && !defined(WOLFSSL_PICOTCP) \
7979
&& !defined(WOLFSSL_CONTIKI) && !defined(WOLFSSL_WICED) \
8080
&& !defined(WOLFSSL_GNRC) && !defined(WOLFSSL_RIOT_OS)
81-
#include <netdb.h>
81+
#ifdef HAVE_NETDB_H
82+
#include <netdb.h>
83+
#endif
8284
#ifdef __PPU
8385
#include <netex/errno.h>
8486
#else
85-
#include <sys/ioctl.h>
87+
#ifdef HAVE_SYS_IOCTL_H
88+
#include <sys/ioctl.h>
89+
#endif
8690
#endif
8791
#endif
8892
#endif

0 commit comments

Comments
 (0)