Browse Source

include/uapi/linux/if_pppol2tp.h: include linux/in.h and linux/in6.h

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>
Mikko Rapeli 9 years ago
parent
commit
05ee5de745
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/uapi/linux/if_pppol2tp.h

+ 2 - 1
include/uapi/linux/if_pppol2tp.h

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