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

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_pppol2tp.h

index 163e8ad..4bd1f55 100644 (file)
@@ -16,7 +16,8 @@
 #define _UAPI__LINUX_IF_PPPOL2TP_H
 
 #include <linux/types.h>
-
+#include <linux/in.h>
+#include <linux/in6.h>
 
 /* Structure used to connect() the socket to a particular tunnel UDP
  * socket over IPv4.