summaryrefslogtreecommitdiff
path: root/src/basic/linux/rtnetlink.h
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-01-25 12:37:49 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-01-25 14:27:18 +0100
commita95ff98ec40edad2825c824a186f44454120cf1f (patch)
tree70a215f59f6038052f2dcc6b5ad2655d4caf4703 /src/basic/linux/rtnetlink.h
parent903dd65b5eb63257393955cb79777beb8c71afc1 (diff)
downloadsystemd-a95ff98ec40edad2825c824a186f44454120cf1f.tar.gz
basic/linux: update linux uapi headers
IPPROTO_L2TP was moved from linux/l2tp.h to linux/in.h [0], so let's reflect that change to fix build with newer kernels: ``` In file included from ../src/libsystemd/sd-netlink/netlink-types-genl.c:10: ../src/basic/linux/l2tp.h:16: error: "IPPROTO_L2TP" redefined [-Werror] 16 | #define IPPROTO_L2TP 115 | In file included from ../src/libsystemd/sd-netlink/netlink-types-genl.c:3: /usr/include/netinet/in.h:85: note: this is the location of the previous definition 85 | #define IPPROTO_L2TP IPPROTO_L2TP | cc1: all warnings being treated as errors ``` When at it, update the rest of the headers we ship as well. [0] https://github.com/torvalds/linux/commit/65b32f801bfbc54dc98144a6ec26082b59d131ee
Diffstat (limited to 'src/basic/linux/rtnetlink.h')
-rw-r--r--src/basic/linux/rtnetlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/linux/rtnetlink.h b/src/basic/linux/rtnetlink.h
index 83849a37db..eb2747d58a 100644
--- a/src/basic/linux/rtnetlink.h
+++ b/src/basic/linux/rtnetlink.h
@@ -440,7 +440,7 @@ struct rtnexthop {
/* RTA_VIA */
struct rtvia {
__kernel_sa_family_t rtvia_family;
- __u8 rtvia_addr[0];
+ __u8 rtvia_addr[];
};
/* RTM_CACHEINFO */