uapi: fix linux/ip6_tunnel.h userspace compilation errors
Subsystems (2)
PATCH 1/1 uapi: fix linux/ip6_tunnel.h userspace compilation errors
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 */
--- include/uapi/linux/ip6_tunnel.h | 2 ++ 1 file changed, 2 insertions(+)
include/uapi/linux/ip6_tunnel.h +2 -0
@@ -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
Signature · 1 line
ldv
From: "Dmitry V. Levin" <[email protected]>
Date: Thu, 23 Feb 2017 01:38:03 +0300
Quoted 9 lines
Include <
linux/if.h> and <linux/in6.h> to fix the followinglinux/ip6_tunnel.huserspace 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
structin6_addrladdr; /* local tunnel end-point address */Signed-off-by Dmitry V. Levin <[email protected]>
Applied.