X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Funix%2Fthread.cpp;h=119d55f0571600a4b57de1bd1fea054acc1fb9d2;hp=3c17a9aabc8054c423253c115ba803325dc3de62;hb=b3c6c94e88945ef6d673f6921a2a951824f49902;hpb=8ac74c1f54ccedb86b4cd1544e2251682c0e95c8 diff --git a/source/core/unix/thread.cpp b/source/core/unix/thread.cpp index 3c17a9a..119d55f 100644 --- a/source/core/unix/thread.cpp +++ b/source/core/unix/thread.cpp @@ -22,8 +22,10 @@ void Thread::platform_launch() void Thread::platform_setname() { +#if defined(__GLIBC__) && (__GLIBC__>2 || (__GLIBC__==2 && __GLIBC_MINOR__>=12)) if(!name_.empty()) pthread_setname_np(priv_->handle, name_.c_str()); +#endif } } // namespace Msp