Both are incompatible:
In file included from platform/linux-generic/pktio/ethtool.c:13:0:
/usr/include/net/if.h:44:5: error: redeclaration of enumerator ‘IFF_UP’
IFF_UP = 0x1, /* Interface is up. */
^
In file included from platform/linux-generic/pktio/ethtool.c:10:0:
/usr/include/linux/if.h:71:2: note: previous definition of ‘IFF_UP’ was here
IFF_UP = 1<<0, /* sysfs */
^
and so on..
Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]>
---
platform/linux-generic/pktio/ethtool.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/platform/linux-generic/pktio/ethtool.c
b/platform/linux-generic/pktio/ethtool.c
index 1f29438..a90a781 100644
--- a/platform/linux-generic/pktio/ethtool.c
+++ b/platform/linux-generic/pktio/ethtool.c
@@ -10,7 +10,6 @@
#include <linux/if.h>
#include <linux/ethtool.h>
#include <errno.h>
-#include <net/if.h>
#include <odp.h>
#include <odp_packet_socket.h>
@@ -158,7 +157,7 @@ int ethtool_stats_get_fd(int fd, const char *name,
odp_pktio_stats_t *stats)
{
struct ifreq ifr;
- snprintf(ifr.ifr_name, IF_NAMESIZE, "%s", name);
+ snprintf(ifr.ifr_name, IFNAMSIZ, "%s", name);
return ethtool_stats(fd, &ifr, stats);
}
--
2.6.3.373.g6d475bf.dirty
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp