From: Jerin Jacob Date: Mon, 3 Apr 2017 08:35:14 +0000 (+0530) Subject: eal/linux: fix build with glibc 2.25 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9256eed78a2ddd54c363241568a744ff65051f13;p=dpdk.git eal/linux: fix build with glibc 2.25 glibc 2.25 is warning about if applications depend on sys/types.h for makedev macro, it expects to be included from Found this error while testing with GCC 6.3.1 on archlinux. lib/librte_eal/linuxapp/eal/eal_pci_uio.c: In function ‘pci_mknod_uio_dev’: lib/librte_eal/linuxapp/eal/eal_pci_uio.c:134:13: error: In the GNU C Library, "makedev" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "makedev", include directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including . [-Werror] dev = makedev(major, minor); ^~~~~~~~~~~~~~~~~ Signed-off-by: Jerin Jacob --- diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index 20a4a665e3..fa10329fd4 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #if defined(RTE_ARCH_X86)