Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1581622

[PATCH] uapi: fix linux/ipv6_route.h userspace compilation errors

From "Dmitry V. Levin" <ldv@altlinux.org>
Newsgroups linux.kernel
Subject [PATCH] uapi: fix linux/ipv6_route.h userspace compilation errors
Date 2017-02-15 21:10 +0100
Message-ID <tbe3L-4vL-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 include/uapi/linux/ipv6_route.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/ipv6_route.h b/include/uapi/linux/ipv6_route.h
index f6598d1..85bbb17 100644
--- a/include/uapi/linux/ipv6_route.h
+++ b/include/uapi/linux/ipv6_route.h
@@ -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)
-- 
ldv

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] uapi: fix linux/ipv6_route.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-15 21:10 +0100
  [PATCH v2] uapi: fix linux/ipv6_route.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-16 16:10 +0100
    Re: [PATCH v2] uapi: fix linux/ipv6_route.h userspace compilation  errors David Miller <davem@davemloft.net> - 2017-02-20 00:20 +0100

csiph-web