From 08a234788ee548796fd6b394c7e897a2bf1df1b3 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 8 Nov 2019 10:00:35 -0800 Subject: [PATCH] cmdline: remove unnecessary #ifdef The #ifdef to conditionally include on BSD is unnecessary. It is harmless to include the header on other OS's. An extra include is better than an #ifdef. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson Acked-by: Olivier Matz --- app/test-pmd/cmdline.c | 2 -- app/test/test_cmdline_ipaddr.c | 2 -- lib/librte_cmdline/cmdline_parse_ipaddr.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 7d48feda96..809c94a895 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -11,9 +11,7 @@ #include #include #include -#ifdef RTE_EXEC_ENV_FREEBSD #include -#endif #include #include diff --git a/app/test/test_cmdline_ipaddr.c b/app/test/test_cmdline_ipaddr.c index 315ac3a9f8..088cd5afc3 100644 --- a/app/test/test_cmdline_ipaddr.c +++ b/app/test/test_cmdline_ipaddr.c @@ -6,9 +6,7 @@ #include #include #include -#ifdef RTE_EXEC_ENV_FREEBSD #include -#endif #include diff --git a/lib/librte_cmdline/cmdline_parse_ipaddr.c b/lib/librte_cmdline/cmdline_parse_ipaddr.c index 4de5ba35ae..f8dbdf204c 100644 --- a/lib/librte_cmdline/cmdline_parse_ipaddr.c +++ b/lib/librte_cmdline/cmdline_parse_ipaddr.c @@ -13,9 +13,7 @@ #include #include #include -#ifdef RTE_EXEC_ENV_FREEBSD #include -#endif #include -- 2.20.1