summaryrefslogtreecommitdiff
path: root/examples/l3fwd
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-05-02 17:51:51 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-05-02 23:04:40 +0200
commit39ad54f76c40dd859a55fe4e44782d8ffd109d44 (patch)
tree21dc2774f69c6c2e5102df25422d5a444415c88c /examples/l3fwd
parenta385972c3675dd2b4792ab5b3cf7a536e6f9846c (diff)
downloaddpdk-39ad54f76c40dd859a55fe4e44782d8ffd109d44.zip
dpdk-39ad54f76c40dd859a55fe4e44782d8ffd109d44.tar.gz
dpdk-39ad54f76c40dd859a55fe4e44782d8ffd109d44.tar.xz
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>
Diffstat (limited to 'examples/l3fwd')
-rw-r--r--examples/l3fwd/l3fwd_lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/l3fwd/l3fwd_lpm.c b/examples/l3fwd/l3fwd_lpm.c
index 172a036..60a0063 100644
--- a/examples/l3fwd/l3fwd_lpm.c
+++ b/examples/l3fwd/l3fwd_lpm.c
@@ -13,6 +13,7 @@
#include <errno.h>
#include <getopt.h>
#include <stdbool.h>
+#include <sys/socket.h>
#include <arpa/inet.h>
#include <rte_debug.h>