[dpdk-dev] [PATCH] eal: fix compile error for old glibc caused by pthread_setname_np()

2015-11-24 Thread Thomas Monjalon
2015-11-19 17:44, Ferruh Yigit: > examples/tep_termination/main.c| 2 +- > examples/vhost/main.c | 2 +- > examples/vhost_xen/main.c | 2 +- > lib/librte_eal/common/eal_thread.h | 6 ++ It cannot compile

[dpdk-dev] [PATCH] eal: fix compile error for old glibc caused by pthread_setname_np()

2015-11-24 Thread Ferruh Yigit
On Tue, Nov 24, 2015 at 06:54:15PM +0100, Thomas Monjalon wrote: > 2015-11-19 17:44, Ferruh Yigit: > > examples/tep_termination/main.c| 2 +- > > examples/vhost/main.c | 2 +- > > examples/vhost_xen/main.c | 2 +- > > lib/li

[dpdk-dev] [PATCH] eal: fix compile error for old glibc caused by pthread_setname_np()#

2015-11-24 Thread Ferruh Yigit
On Fri, Nov 20, 2015 at 12:21:05PM +, Bruce Richardson wrote: > On Thu, Nov 19, 2015 at 05:44:26PM +, Ferruh Yigit wrote: > > Fixes: 67b6d3039e9e ("eal: set name to threads") > > > > pthread_setname_np() function added in glibc 2.12, using this function > > in older glibc versions cause co

[dpdk-dev] [PATCH] eal: fix compile error for old glibc caused by pthread_setname_np()#

2015-11-20 Thread Bruce Richardson
On Thu, Nov 19, 2015 at 05:44:26PM +, Ferruh Yigit wrote: > Fixes: 67b6d3039e9e ("eal: set name to threads") > > pthread_setname_np() function added in glibc 2.12, using this function > in older glibc versions cause compile error: > error: implicit declaration of function "pthread_setname_np"

[dpdk-dev] [PATCH] eal: fix compile error for old glibc caused by pthread_setname_np()

2015-11-19 Thread Ferruh Yigit
Fixes: 67b6d3039e9e ("eal: set name to threads") pthread_setname_np() function added in glibc 2.12, using this function in older glibc versions cause compile error: error: implicit declaration of function "pthread_setname_np" This patch adds "rte_thread_setname" macro and set it according glibc >