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
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).
11 This leads to unsynchronous some IP headers and compiler got failure
12 with error: redefinition of some structs IP.
14 In this commit, just reorder this including to make them in-sync.
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>
21 1 file changed, 1 insertion(+)
23 diff --git a/rdma/rdma.h b/rdma/rdma.h
24 index fcaf9e69..d4b7ba19 100644
31 +#include <netinet/in.h>
32 #include <libmnl/libmnl.h>
33 #include <rdma/rdma_netlink.h>
34 #include <rdma/rdma_user_cm.h>