summaryrefslogtreecommitdiff
path: root/pkg/libnl/patch/0003-Avoid-initialization-of-flexible-array-member.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-10-04 18:34:31 -0700
committerMichael Forney <mforney@mforney.org>2019-10-04 18:34:31 -0700
commit9b268df2f79e112b98dce51fe9359dbce126711e (patch)
tree32baf8d3b28217829ead260202ee3182b72fe318 /pkg/libnl/patch/0003-Avoid-initialization-of-flexible-array-member.patch
parente6df1e7263e94204d4445eb684c3df13e9fc8a1a (diff)
libnl: Update to 3.5.0
Diffstat (limited to 'pkg/libnl/patch/0003-Avoid-initialization-of-flexible-array-member.patch')
-rw-r--r--pkg/libnl/patch/0003-Avoid-initialization-of-flexible-array-member.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkg/libnl/patch/0003-Avoid-initialization-of-flexible-array-member.patch b/pkg/libnl/patch/0003-Avoid-initialization-of-flexible-array-member.patch
new file mode 100644
index 00000000..8390197b
--- /dev/null
+++ b/pkg/libnl/patch/0003-Avoid-initialization-of-flexible-array-member.patch
@@ -0,0 +1,39 @@
+From d1f59de10a2fbce42735b3a1938ecd4d60c8e205 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Sun, 11 Aug 2019 21:55:54 +0000
+Subject: [PATCH] Avoid initialization of flexible array member
+
+---
+ include/netlink-private/cache-api.h | 2 +-
+ include/netlink-private/netlink.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/netlink-private/cache-api.h b/include/netlink-private/cache-api.h
+index c684e79..82be310 100644
+--- a/include/netlink-private/cache-api.h
++++ b/include/netlink-private/cache-api.h
+@@ -259,7 +259,7 @@ struct nl_cache_ops
+ struct genl_ops * co_genl;
+
+ /* Message type definition */
+- struct nl_msgtype co_msgtypes[];
++ struct nl_msgtype *co_msgtypes;
+ };
+
+ /** @} */
+diff --git a/include/netlink-private/netlink.h b/include/netlink-private/netlink.h
+index fca3133..1148cec 100644
+--- a/include/netlink-private/netlink.h
++++ b/include/netlink-private/netlink.h
+@@ -200,7 +200,7 @@ static inline const char *nl_cache_name(struct nl_cache *cache)
+ }
+
+ #define GENL_FAMILY(id, name) \
+- { \
++ (struct nl_msgtype[]){ \
+ { id, NL_ACT_UNSPEC, name }, \
+ END_OF_MSGTYPES_LIST, \
+ }
+--
+2.23.0
+