examples/l3fwd: fix build on FreeBSD
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 2 May 2019 16:51:51 +0000 (17:51 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 May 2019 21:04:40 +0000 (23:04 +0200)
commit39ad54f76c40dd859a55fe4e44782d8ffd109d44
tree21dc2774f69c6c2e5102df25422d5a444415c88c
parenta385972c3675dd2b4792ab5b3cf7a536e6f9846c
examples/l3fwd: fix build on FreeBSD

On freebsd we need to include sys/socket.h to get the definition of
AF_INET in order to compile.

Fixes: d5ceea4ab160 ("examples/l3fwd: format IP addresses for printing")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
examples/l3fwd/l3fwd_lpm.c