From 39ad54f76c40dd859a55fe4e44782d8ffd109d44 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Thu, 2 May 2019 17:51:51 +0100 Subject: [PATCH] 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 Acked-by: Luca Boccassi --- examples/l3fwd/l3fwd_lpm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/l3fwd/l3fwd_lpm.c b/examples/l3fwd/l3fwd_lpm.c index 172a036b27..60a00639e1 100644 --- a/examples/l3fwd/l3fwd_lpm.c +++ b/examples/l3fwd/l3fwd_lpm.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include -- 2.20.1