]> git.droids-corp.org - dpdk.git/blobdiff - examples/cmdline/commands.c
add FreeBSD support
[dpdk.git] / examples / cmdline / commands.c
index 60d190994b4a0fae27159656d641a9d903a735c1..afce7159cbfb2e456acf0295ca52b713b221c2bf 100644 (file)
 #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>