From: Marvin Liu Date: Thu, 19 Mar 2015 03:16:58 +0000 (+0800) Subject: eal/linux: fix build functions pread and pwrite X-Git-Tag: spdx-start~9398 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=89085f13e672691c4d3c3b65ddb9b28ec3d728fb;p=dpdk.git eal/linux: fix build functions pread and pwrite Function pread need macro _XOPEN_SOURCE be defined. Add _GNU_SOURCE will fix this issue. error: implicit declaration of function ‘pread’ Fixes: 4a499c649590 ("eal/linux: enable uio_pci_generic support") Signed-off-by: Marvin Liu Acked-by: Thomas Monjalon --- diff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile index 23c2d48c51..01f7b70183 100644 --- a/lib/librte_eal/linuxapp/eal/Makefile +++ b/lib/librte_eal/linuxapp/eal/Makefile @@ -92,12 +92,14 @@ SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_options.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_thread.c CFLAGS_eal.o := -D_GNU_SOURCE +CFLAGS_eal_interrupts.o := -D_GNU_SOURCE CFLAGS_eal_lcore.o := -D_GNU_SOURCE CFLAGS_eal_thread.o := -D_GNU_SOURCE CFLAGS_eal_log.o := -D_GNU_SOURCE CFLAGS_eal_common_log.o := -D_GNU_SOURCE CFLAGS_eal_hugepage_info.o := -D_GNU_SOURCE CFLAGS_eal_pci.o := -D_GNU_SOURCE +CFLAGS_eal_pci_uio.o := -D_GNU_SOURCE CFLAGS_eal_pci_vfio.o := -D_GNU_SOURCE CFLAGS_eal_common_whitelist.o := -D_GNU_SOURCE CFLAGS_eal_common_options.o := -D_GNU_SOURCE