If we do have a libc ioctl.h header then we should be using it because it
usually contains a larger number of constants with better value assignments than
the ones in lwip.
Signed-off-by: Bogdan Lascu <lascu.bogdan96@gmail.com>
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
#endif
#if LWIP_SOCKET
+#if CONFIG_HAVE_LIBC
+/* Stop lwip to provide ioctl constants */
+#include <sys/ioctl.h>
+#endif
/* Stop lwip to provide fd_set */
#include <sys/select.h>