History

uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors

Include <linux/in6.h> in uapi/linux/seg6.h to fix the following linux/seg6.h userspace compilation error: /usr/include/linux/seg6.h:31:18: error: array type has incomplete element type 'struct in6_addr' struct in6_addr segments[0]; Include <linux/seg6.h> in uapi/linux/seg6_iptunnel.h to fix the following linux/seg6_iptunnel.h userspace compilation error: /usr/include/linux/seg6_iptunnel.h:26:21: error: array type has incomplete element type 'struct ipv6_sr_hdr' struct ipv6_sr_hdr srh[0];

Dmitry V. Levin committed 9 years ago

Commit ea3ebc71 parent 50ab3af2 files · +3 −0Browse files

Unified · Split

2 files
  1. include/uapi/linux/seg6.h +1 −0
  2. include/uapi/linux/seg6_iptunnel.h +2 −0
include/uapi/linux/seg6.h+1−0
@@ -15,6 +15,7 @@ · 14 unmodified lines
1515 #define _UAPI_LINUX_SEG6_H
1616
1717 #include <linux/types.h>
18+#include <linux/in6.h> /* For struct in6_addr. */
1819
1920 /*
2021 * SRH
include/uapi/linux/seg6_iptunnel.h+2−0
@@ -14,6 +14,8 @@ · 13 unmodified lines
1414 #ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H
1515 #define _UAPI_LINUX_SEG6_IPTUNNEL_H
1616
17+#include <linux/seg6.h> /* For struct ipv6_sr_hdr. */
18+
1719 enum {
1820 SEG6_IPTUNNEL_UNSPEC,
1921 SEG6_IPTUNNEL_SRH,