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>
This commit is contained in:
parent
9ef2593651
commit
56faae8269
@ -33,6 +33,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/queue.h>
|
||||
#include <sys/socket.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user