From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yong Liu Subject: [PATCH 6/6] fix build error for implicit declaration of function pread Date: Thu, 19 Mar 2015 11:16:58 +0800 Message-ID: <1426735018-19411-9-git-send-email-yong.liu@intel.com> References: <1426735018-19411-1-git-send-email-yong.liu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1426735018-19411-1-git-send-email-yong.liu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" From: Marvin Liu Function pread need marco _XOPEN_SOURCE be defined. Add _GNU_SOURCE will fix this issue. error: implicit declaration of function =E2=80=98pread=E2=80=99 Signed-off-by: Marvin Liu diff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxa= pp/eal/Makefile index 23c2d48..21875b8 100644 --- a/lib/librte_eal/linuxapp/eal/Makefile +++ b/lib/librte_eal/linuxapp/eal/Makefile @@ -102,6 +102,8 @@ CFLAGS_eal_pci_vfio.o :=3D -D_GNU_SOURCE CFLAGS_eal_common_whitelist.o :=3D -D_GNU_SOURCE CFLAGS_eal_common_options.o :=3D -D_GNU_SOURCE CFLAGS_eal_common_thread.o :=3D -D_GNU_SOURCE +CFLAGS_eal_pci_uio.o :=3D -D_GNU_SOURCE +CFLAGS_eal_interrupts.o :=3D -D_GNU_SOURCE =20 # workaround for a gcc bug with noreturn attribute # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D12603 --=20 1.9.3