include/uapi/linux/if_pppox.h: include linux/in.h and linux/in6.h
authorMikko Rapeli <mikko.rapeli@iki.fi>
Mon, 22 Aug 2016 18:32:43 +0000 (20:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2016 23:25:15 +0000 (16:25 -0700)
Fixes userspace compilation errors:

error: field ‘addr’ has incomplete type
 struct sockaddr_in addr; /* IP address and port to send to */

error: field ‘addr’ has incomplete type
 struct sockaddr_in6 addr; /* IP address and port to send to */

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_pppox.h

index 473c3c45e3d84521663ecde49fb25f86436d8d46..d37bbb17a007c108f093ac517e4f0d567f3920de 100644 (file)
@@ -24,6 +24,8 @@
 #include <linux/if.h>
 #include <linux/if_ether.h>
 #include <linux/if_pppol2tp.h>
+#include <linux/in.h>
+#include <linux/in6.h>
 
 /* For user-space programs to pick up these definitions
  * which they wouldn't get otherwise without defining __KERNEL__