diff options
Diffstat (limited to 'recipes-extended/ofp/ofp/Fix-compilation-issue-with-redefinition-of-a-struct.patch')
-rw-r--r-- | recipes-extended/ofp/ofp/Fix-compilation-issue-with-redefinition-of-a-struct.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-extended/ofp/ofp/Fix-compilation-issue-with-redefinition-of-a-struct.patch b/recipes-extended/ofp/ofp/Fix-compilation-issue-with-redefinition-of-a-struct.patch new file mode 100644 index 00000000..4163dc8e --- /dev/null +++ b/recipes-extended/ofp/ofp/Fix-compilation-issue-with-redefinition-of-a-struct.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | ofp_netlink.c: do not include netinet/ip.h | ||
2 | |||
3 | The struct iphdr is defined in netinet/ip.h and in linux/ip.h. The | ||
4 | backwards compatible ofp_netlink.c is modified to include linux/ip.h. | ||
5 | |||
6 | http://www.openfastpath.org/pipermail/openfastpath/2016-October/001330.html | ||
7 | |||
8 | |||
9 | --- a/src/ofp_netlink.cold 2017-04-20 16:08:20.942851781 +0800 | ||
10 | +++ b/src/ofp_netlink.c 2017-04-20 16:08:39.222851148 +0800 | ||
11 | @@ -9,7 +9,7 @@ | ||
12 | #include <stdio.h> | ||
13 | #include <string.h> | ||
14 | #include <netinet/in.h> | ||
15 | -#include <netinet/ip.h> | ||
16 | +#include <linux/ip.h> | ||
17 | #include <linux/netlink.h> | ||
18 | #include <linux/rtnetlink.h> | ||
19 | #include <linux/if_arp.h> | ||