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

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Nov 25 14:41:22 CET 2015


2015-11-25 11:13, 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 >= 2.12 check, thread naming disabled for older glibc versions,
> glibc versions that support "pthread_setname_np" will keep using this
> function.
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied as eal/linux fix, thanks


More information about the dev mailing list