Skip to content

Commit

Permalink
uapi: fix linux/ipv6_route.h userspace compilation errors
Browse files Browse the repository at this point in the history
Include <linux/in6.h> to fix the following linux/ipv6_route.h userspace
compilation errors:

/usr/include/linux/ipv6_route.h:42:19: error: field 'rtmsg_dst' has incomplete type
  struct in6_addr  rtmsg_dst;
/usr/include/linux/ipv6_route.h:43:19: error: field 'rtmsg_src' has incomplete type
  struct in6_addr  rtmsg_src;
/ust/include/linux/ipv6_route.h:44:19: error: field 'rtmsg_gateway' has incomplete type
  struct in6_addr  rtmsg_gateway;

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dmitry V. Levin authored and David S. Miller committed Feb 19, 2017
1 parent 249168a commit 6c07ec0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/linux/ipv6_route.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define _UAPI_LINUX_IPV6_ROUTE_H

#include <linux/types.h>
#include <linux/in6.h> /* For struct in6_addr. */

#define RTF_DEFAULT 0x00010000 /* default - learned via ND */
#define RTF_ALLONLINK 0x00020000 /* (deprecated and will be removed)
Expand Down

0 comments on commit 6c07ec0

Please sign in to comment.