History

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 */

Dmitry V. Levin committed 9 years ago

Commit 557d7ac1 parent 79873fb1 file · +2 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/ip6_tunnel.h+2−0
@@ -2,6 +2,8 @@ · 1 unmodified line
2#define _IP6_TUNNEL_H2#define _IP6_TUNNEL_H
3 3
4#include <linux/types.h>4#include <linux/types.h>
5#include <linux/if.h> /* For IFNAMSIZ. */
6#include <linux/in6.h> /* For struct in6_addr. */
5 7
6#define IPV6_TLV_TNL_ENCAP_LIMIT 48#define IPV6_TLV_TNL_ENCAP_LIMIT 4
7#define IPV6_DEFAULT_TNL_ENCAP_LIMIT 49#define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4