diff mbox series

[v5,4/25] linux-gen: pktio: ethtool: don't include linux/if.h

Message ID 1503396009-8350-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v5,1/25] configure: move configure header to include dir | expand

Commit Message

Github ODP bot Aug. 22, 2017, 9:59 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


net/if.h together with _USE_MISC (from _GNU_SOURCE) includes necessary
definitions, so no point in including platform-specific linux/if.h.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 127 (lumag:improve-build)
 ** https://github.com/Linaro/odp/pull/127
 ** Patch: https://github.com/Linaro/odp/pull/127.patch
 ** Base sha: aecb3c7a442b426761f1e6f43308a1e9ea709ef3
 ** Merge commit sha: 86e036501e05c61e5570d0908af382a61c2d4e89
 **/
 platform/linux-generic/pktio/ethtool.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/pktio/ethtool.c b/platform/linux-generic/pktio/ethtool.c
index 482af5b6..8f3c7e69 100644
--- a/platform/linux-generic/pktio/ethtool.c
+++ b/platform/linux-generic/pktio/ethtool.c
@@ -4,10 +4,12 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 #include <sys/ioctl.h>
 #include <netinet/in.h>
 #include <linux/sockios.h>
-#include <linux/if.h>
 #include <linux/ethtool.h>
 #include <errno.h>
 #include <net/if.h>