uapi: fix linux/ip6_tunnel.h userspace compilation errors
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 22 Feb 2017 22:38:03 +0000 (01:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2017 15:46:07 +0000 (10:46 -0500)
Include <linux/if.h> and <linux/in6.h> to fix the following
linux/ip6_tunnel.h userspace compilation errors:

/usr/include/linux/ip6_tunnel.h:23:12: error: 'IFNAMSIZ' undeclared here (not in a function)
  char name[IFNAMSIZ]; /* name of tunnel device */
/usr/include/linux/ip6_tunnel.h:30:18: error: field 'laddr' has incomplete type
  struct in6_addr laddr; /* local tunnel end-point address */

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/ip6_tunnel.h

index 48af63c9a48d25f5f6d9e2681e6eeeec5a4fef8c..425926c467d7ac8c30010e4aa3b6f664954d0ad1 100644 (file)
@@ -2,6 +2,8 @@
 #define _IP6_TUNNEL_H
 
 #include <linux/types.h>
+#include <linux/if.h>          /* For IFNAMSIZ. */
+#include <linux/in6.h>         /* For struct in6_addr. */
 
 #define IPV6_TLV_TNL_ENCAP_LIMIT 4
 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4