From 56faae8269eede35ec869d68f8aa1524918d7497 Mon Sep 17 00:00:00 2001 From: Daniel Mrzyglod Date: Wed, 25 Nov 2015 19:03:57 +0100 Subject: [PATCH] examples/bond: fix FreeBSD build Error: examples/bond/main.c:431:24: error: use of undeclared identifier 'AF_INET' AF_INET defined in sys/socket.h This header included for Linux: . //include/rte_ip.h .. /usr/include/netinet/in.h ... /usr/include/sys/socket.h But not for FreeBSD: . //include/rte_ip.h .. /usr/include/netinet/in.h ... /usr/include/machine/endian.h ... /usr/include/netinet6/in6.h . //include/rte_tcp.h Signed-off-by: Daniel Mrzyglod Signed-off-by: Ferruh Yigit --- examples/bond/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bond/main.c b/examples/bond/main.c index 4622283ecb..53bd044137 100644 --- a/examples/bond/main.c +++ b/examples/bond/main.c @@ -33,6 +33,7 @@ #include #include +#include #include #include #include -- 2.20.1