diff options
author | Bruce Richardson <bruce.richardson@intel.com> | 2014-02-10 11:49:10 +0000 |
---|---|---|
committer | David Marchand <david.marchand@6wind.com> | 2014-02-25 21:29:18 +0100 |
commit | 764bf26873b95761ac3bd4b98251d3c497c65a90 (patch) | |
tree | ecb5398d635bca887528343afb3fda368d96b07e /examples/cmdline | |
parent | e9d48c0072d36eb6423b45fba4ec49d0def6c36f (diff) | |
download | dpdk-764bf26873b95761ac3bd4b98251d3c497c65a90.zip dpdk-764bf26873b95761ac3bd4b98251d3c497c65a90.tar.gz dpdk-764bf26873b95761ac3bd4b98251d3c497c65a90.tar.xz |
add FreeBSD support
Changes to allow compilation and use on FreeBSD. Includes:
* contigmem and nic_uio driver for FreeBSD
* new EAL instance
* new "bsdapp" compilation target
* various compilation fixes due to differences between linux and freebsd
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'examples/cmdline')
-rw-r--r-- | examples/cmdline/commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/cmdline/commands.c b/examples/cmdline/commands.c index 60d1909..afce715 100644 --- a/examples/cmdline/commands.c +++ b/examples/cmdline/commands.c @@ -67,7 +67,11 @@ #include <netinet/in.h> #include <termios.h> #ifndef __linux__ -#include <net/socket.h> + #ifdef __FreeBSD__ + #include <sys/socket.h> + #else + #include <net/socket.h> + #endif #endif #include <cmdline_rdline.h> |