[dpdk-dev] [PATCH] eal/linux: fix build with glibc < 2.12

2016-06-20 Thread Thomas Monjalon
2016-06-19 23:11, Thomas Monjalon: > The function rte_thread_setname needs glibc 2.12, > otherwise it returns -1 without using any parameter. > The macro RTE_SET_USED avoids an "unused parameter" warning. > > Fixes: 3901ed99c2f8 ("eal: fix thread naming on FreeBSD") > > Signed-off-by: Thomas

[dpdk-dev] [PATCH] eal/linux: fix build with glibc < 2.12

2016-06-20 Thread Thomas Monjalon
The function rte_thread_setname needs glibc 2.12, otherwise it returns -1 without using any parameter. The macro RTE_SET_USED avoids an "unused parameter" warning. Fixes: 3901ed99c2f8 ("eal: fix thread naming on FreeBSD") Signed-off-by: Thomas Monjalon ---

[dpdk-dev] [PATCH] eal/linux: fix build

2015-03-05 Thread Thomas Monjalon
Hi Michael, 2015-03-05 09:13, Qiu, Michael: > On 3/4/2015 6:24 AM, Thomas Monjalon wrote: > >>> Compilation fails in some distributions because of missing unistd.h > >>> needed for pread/pwrite (seen with Suse): > >>> lib/librte_eal/linuxapp/eal/eal_pci_uio.c:62:2: > >>> error:

[dpdk-dev] [PATCH] eal/linux: fix build

2015-03-05 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Qiu, Michael > Sent: Thursday, March 05, 2015 9:13 AM > To: Thomas Monjalon; David Marchand > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] eal/linux: fix build > > On

[dpdk-dev] [PATCH] eal/linux: fix build

2015-03-05 Thread Qiu, Michael
On 3/4/2015 6:24 AM, Thomas Monjalon wrote: >>> Compilation fails in some distributions because of missing unistd.h >>> needed for pread/pwrite (seen with Suse): >>> lib/librte_eal/linuxapp/eal/eal_pci_uio.c:62:2: >>> error: implicit declaration of function ?pread? >>> >>> Fixes:

[dpdk-dev] [PATCH] eal/linux: fix build

2015-03-03 Thread Thomas Monjalon
> > Compilation fails in some distributions because of missing unistd.h > > needed for pread/pwrite (seen with Suse): > > lib/librte_eal/linuxapp/eal/eal_pci_uio.c:62:2: > > error: implicit declaration of function ?pread? > > > > Fixes: 4a499c649590 ("eal/linux: enable

[dpdk-dev] [PATCH] eal/linux: fix build

2015-03-03 Thread David Marchand
On Tue, Mar 3, 2015 at 9:44 AM, Thomas Monjalon wrote: > Compilation fails in some distributions because of missing unistd.h > needed for pread/pwrite (seen with Suse): > lib/librte_eal/linuxapp/eal/eal_pci_uio.c:62:2: > error: implicit declaration of function ?pread? > > Fixes:

[dpdk-dev] [PATCH] eal/linux: fix build

2015-03-03 Thread Thomas Monjalon
Compilation fails in some distributions because of missing unistd.h needed for pread/pwrite (seen with Suse): lib/librte_eal/linuxapp/eal/eal_pci_uio.c:62:2: error: implicit declaration of function ?pread? Fixes: 4a499c649590 ("eal/linux: enable uio_pci_generic support")