From: Daniel Mrzyglod Date: Wed, 25 Nov 2015 18:03:57 +0000 (+0100) Subject: examples/bond: fix FreeBSD build X-Git-Tag: spdx-start~7857 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=56faae8269eede35ec869d68f8aa1524918d7497;p=dpdk.git 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 --- 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