Skip to content

Commit d1efccd

Browse files
authored
Merge pull request #7381 from dgarske/netdb_ioctl
Restore `HAVE_NETDB_H` and `HAVE_SYS_IOCTL_H` checks in the wolfio.c.
2 parents a518f49 + da6a11d commit d1efccd

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)