examples/bond: fix FreeBSD build
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Wed, 25 Nov 2015 18:03:57 +0000 (19:03 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Dec 2015 02:21:13 +0000 (03:21 +0100)
commit56faae8269eede35ec869d68f8aa1524918d7497
tree3a7e52708802dfc8828587627dfb50140b5cbe72
parent9ef2593651f916516f8b191c2aa050bd42d31898
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:
. /<snip>/include/rte_ip.h
.. /usr/include/netinet/in.h
... /usr/include/sys/socket.h

But not for FreeBSD:
. /<snip>/include/rte_ip.h
.. /usr/include/netinet/in.h
... /usr/include/machine/endian.h
... /usr/include/netinet6/in6.h
. /<snip>/include/rte_tcp.h

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
examples/bond/main.c