git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a385972
)
examples/l3fwd: fix build on FreeBSD
author
Bruce Richardson
<bruce.richardson@intel.com>
Thu, 2 May 2019 16:51:51 +0000
(17:51 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Thu, 2 May 2019 21:04:40 +0000
(23:04 +0200)
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
patch
|
blob
|
history
diff --git
a/examples/l3fwd/l3fwd_lpm.c
b/examples/l3fwd/l3fwd_lpm.c
index
172a036
..
60a0063
100644
(file)
--- 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>