]> git.droids-corp.org - dpdk.git/blobdiff - examples/cmdline/commands.c
common/mlx5: fix build without dlopen option
[dpdk.git] / examples / cmdline / commands.c
index e96739f3467718bcdbfa6915c7f3db47658fa125..4badffc2578d39ab0c8a3caa26a29ed6feed05db 100644 (file)
 #include <errno.h>
 #include <netinet/in.h>
 #include <termios.h>
-#ifndef __linux__
-       #ifdef __FreeBSD__
-               #include <sys/socket.h>
-       #else
-               #include <net/socket.h>
-       #endif
+#ifdef RTE_EXEC_ENV_FREEBSD
+#include <sys/socket.h>
 #endif
 
 #include <cmdline_rdline.h>