cmdline: replace FreeBSD ifdef for IP address parsing
The constants like AF_INET are in sys/socket.h in FreeBSD. The #ifdef macro __FreeBSD__ is replaced with RTE_EXEC_ENV_FREEBSD in order to be consistent across DPDK files, and allow to grep for EXEC_ENV among other benefits. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
7cc1bd4613
commit
14cba9ee22
@ -11,7 +11,7 @@
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <inttypes.h>
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef RTE_EXEC_ENV_FREEBSD
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#include <netinet/in.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <netinet/in.h>
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef RTE_EXEC_ENV_FREEBSD
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <errno.h>
|
||||
#include <netinet/in.h>
|
||||
#include <termios.h>
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef RTE_EXEC_ENV_FREEBSD
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <errno.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef RTE_EXEC_ENV_FREEBSD
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user