clean bare metal support traces
Checks
Commit Message
Bare metal support has been gone for quite some time but we still had
some checks on system includes.
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
app/test-pmd/cmdline.c | 6 +-----
app/test/commands.c | 5 -----
app/test/test_cmdline_ipaddr.c | 7 +------
examples/cmdline/commands.c | 8 ++------
lib/librte_cmdline/cmdline_parse_ipaddr.c | 6 +-----
5 files changed, 5 insertions(+), 27 deletions(-)
Comments
12/08/2019 09:00, David Marchand:
> Bare metal support has been gone for quite some time but we still had
> some checks on system includes.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
> app/test-pmd/cmdline.c | 6 +-----
> app/test/commands.c | 5 -----
> app/test/test_cmdline_ipaddr.c | 7 +------
> examples/cmdline/commands.c | 8 ++------
> lib/librte_cmdline/cmdline_parse_ipaddr.c | 6 +-----
> 5 files changed, 5 insertions(+), 27 deletions(-)
Applied, thanks for removing some lines :)
@@ -11,13 +11,9 @@
#include <termios.h>
#include <unistd.h>
#include <inttypes.h>
-#ifndef __linux__
-#ifndef __FreeBSD__
-#include <net/socket.h>
-#else
+#ifdef __FreeBSD__
#include <sys/socket.h>
#endif
-#endif
#include <netinet/in.h>
#include <sys/queue.h>
@@ -10,11 +10,6 @@
#include <stdlib.h>
#include <netinet/in.h>
#include <termios.h>
-#ifndef __linux__
-#ifndef __FreeBSD__
-#include <net/socket.h>
-#endif
-#endif
#include <inttypes.h>
#include <errno.h>
#include <sys/queue.h>
@@ -6,14 +6,9 @@
#include <string.h>
#include <inttypes.h>
#include <netinet/in.h>
-
-#ifndef __linux__
-#ifndef __FreeBSD__
-#include <net/socket.h>
-#else
+#ifdef __FreeBSD__
#include <sys/socket.h>
#endif
-#endif
#include <rte_string_fns.h>
@@ -12,12 +12,8 @@
#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 __FreeBSD__
+#include <sys/socket.h>
#endif
#include <cmdline_rdline.h>
@@ -13,13 +13,9 @@
#include <errno.h>
#include <arpa/inet.h>
#include <netinet/in.h>
-#ifndef __linux__
-#ifndef __FreeBSD__
-#include <net/socket.h>
-#else
+#ifdef __FreeBSD__
#include <sys/socket.h>
#endif
-#endif
#include <rte_string_fns.h>