]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
lwipopts.h: Use libc ioctl.h if available
authorBogdan Lascu <lascu.bogdan96@gmail.com>
Fri, 16 Aug 2019 07:09:42 +0000 (10:09 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Tue, 20 Aug 2019 04:12:37 +0000 (06:12 +0200)
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>
include/lwipopts.h

index c72c161dadb4b2f74618d065c7fcc8f5d14470f3..559223d50d670c32dc9f6bab2e71f5a69c8dbfb7 100644 (file)
@@ -187,6 +187,10 @@ void sys_free(void *ptr);
 #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>