--- a/lwip-v6/src/include/lwip/sockets.h
+++ b/lwip-v6/src/include/lwip/sockets.h
@@ -58,6 +58,7 @@
 #include <netinet/in.h>
 #include <sys/ioctl.h>
 #include <net/if_arp.h>
+#include <linux/sockios.h>
 
 #include "lwip/ip_addr.h"
 #if 0
