diff options
Diffstat (limited to 'meta-oe/recipes-extended/tipcutils/tipcutils/0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch')
-rw-r--r-- | meta-oe/recipes-extended/tipcutils/tipcutils/0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/tipcutils/tipcutils/0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch b/meta-oe/recipes-extended/tipcutils/tipcutils/0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch new file mode 100644 index 000000000..e49528505 --- /dev/null +++ b/meta-oe/recipes-extended/tipcutils/tipcutils/0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 1ce892749e4f53bd0aeaa4c3ce45f80178799411 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 3 Mar 2018 17:52:51 -0800 | ||
4 | Subject: [PATCH] multicast_blast/tipcc: Fix struct type for TIPC_GROUP_JOIN | ||
5 | |||
6 | Kernel defines it as tipc_group_req and not tipc_mreq | ||
7 | this code was not excercised with older kernels so we | ||
8 | never ran into the compiler failures since TIPC_GROUP_JOIN | ||
9 | is only defined in kernel starting 4.15 | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Upstream-Status: Pending | ||
14 | |||
15 | multicast_blast/tipcc.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/multicast_blast/tipcc.c b/multicast_blast/tipcc.c | ||
19 | index 90644d3..911c759 100755 | ||
20 | --- a/multicast_blast/tipcc.c | ||
21 | +++ b/multicast_blast/tipcc.c | ||
22 | @@ -213,7 +213,7 @@ int tipc_accept(int sd, struct tipc_addr *src) | ||
23 | int tipc_join(int sd, struct tipc_addr *member) | ||
24 | { | ||
25 | #ifdef TIPC_GROUP_JOIN | ||
26 | - struct tipc_mreq mreq = { | ||
27 | + struct tipc_group_req mreq = { | ||
28 | .type = member->type, | ||
29 | .instance = member->instance, | ||
30 | .scope = domain2scope(member->domain) | ||
31 | -- | ||
32 | 2.16.2 | ||
33 | |||