u_thread: Use pthread_setname_np on linux only.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 13 Jan 2018 11:33:15 +0000 (12:33 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Mon, 22 Jan 2018 21:12:41 +0000 (21:12 +0000)
commit9131e6d3c2dcc30260e23f2232b44c8cffc6f315
treef6c5fdb70d3e540229744c1328860587bddc1515
parentdcbb224c688bfdacb76107a9816647f64088e67e
u_thread: Use pthread_setname_np on linux only.

pthread_setname_np was added in glibc 2.12 for the Linux port only, other
ports do not necessarily have it.

Signed-off-by: Jose Fonseca <jfonseca@vmware.com>
src/util/u_thread.h