eal/linux: fix build with glibc < 2.12
authorThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 19 Jun 2016 21:03:52 +0000 (23:03 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 20 Jun 2016 08:14:21 +0000 (10:14 +0200)
commit368e2624f23a541831491a61fc0082d9b6008cd8
tree4a74fe4e45230c034098bfa1ecbd90ca4bb56c4b
parent3901ed99c2f82d3e979bb1bea001d61898241829
eal/linux: fix build with glibc < 2.12

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 <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/eal/eal_thread.c