ath9k: fix setting up tx99 with a monitor mode interface
[openwrt/staging/lynxis.git] / package / network / utils / iproute2 / patches / 001-rdma-sync-some-IP-headers-with-glibc.patch
1 From 5887ff0922a06d978d3271df9f01fcb04fadc75f Mon Sep 17 00:00:00 2001
2 From: Hoang Le <hoang.h.le@dektech.com.au>
3 Date: Wed, 13 Jun 2018 11:09:56 +0700
4 Subject: [PATCH] rdma: sync some IP headers with glibc
5
6 In the commit 9a362cc71a45, new userspace header:
7 (i.e rdma/rdma_user_cm.h -> linux/in6.h)
8 is included before the kernel space header:
9 (i.e utils.h -> resolv.h -> netinet/in.h).
10
11 This leads to unsynchronous some IP headers and compiler got failure
12 with error: redefinition of some structs IP.
13
14 In this commit, just reorder this including to make them in-sync.
15
16 Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
17 Acked-by: Leon Romanovsky <leonro@mellanox.com>
18 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
19 ---
20 rdma/rdma.h | 1 +
21 1 file changed, 1 insertion(+)
22
23 diff --git a/rdma/rdma.h b/rdma/rdma.h
24 index fcaf9e69..d4b7ba19 100644
25 --- a/rdma/rdma.h
26 +++ b/rdma/rdma.h
27 @@ -15,6 +15,7 @@
28 #include <string.h>
29 #include <errno.h>
30 #include <getopt.h>
31 +#include <netinet/in.h>
32 #include <libmnl/libmnl.h>
33 #include <rdma/rdma_netlink.h>
34 #include <rdma/rdma_user_cm.h>
35 --
36 2.16.3
37