From 1657e1f871a68b420e216fc15092d0e40b7e41fa Mon Sep 17 00:00:00 2001 From: David Marchand Date: Thu, 6 May 2021 16:25:19 +0200 Subject: [PATCH] net: fix header include order for FreeBSD Spotted by sparse in OVS build: ../../lib/netdev-dpdk.c: note: in included file (through /home/runner/work/ovs/ovs/dpdk-dir/build/include/rte_ip.h, /home/runner/work/ovs/ovs/dpdk-dir/build/include/rte_flow.h, ...): ../../include/sparse/arpa/inet.h:22:2: error: "Must include before for FreeBSD support" This is a check enforced by OVS itself. See [1] for some context. 1: https://github.com/openvswitch/ovs/commit/b2befd5bb2db Fixes: 89813a522e68 ("net: provide IP-related API on any OS") Signed-off-by: David Marchand Acked-by: Dmitry Kozlyuk Acked-by: Olivier Matz --- lib/net/rte_ip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/rte_ip.h b/lib/net/rte_ip.h index 8c189009b0..4b728969c1 100644 --- a/lib/net/rte_ip.h +++ b/lib/net/rte_ip.h @@ -22,8 +22,8 @@ #else #include #include -#include #include +#include #include #endif -- 2.20.1