badb3688ff
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.
Fixes:
|
||
---|---|---|
.. | ||
main.c | ||
main.h | ||
Makefile | ||
vhost_monitor.c | ||
virtio-net.h | ||
xen_vhost.h | ||
xenstore_parse.c |