build: Add __FreeBSD__ compilation condition for pthread_setname_np()
This commit is contained in:
parent
1176ca6409
commit
29f298ec88
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ void* ThreadProc(void* context) {
|
||||||
|
|
||||||
#if defined(LC_WINDOWS)
|
#if defined(LC_WINDOWS)
|
||||||
setThreadNameWin32(ctx->name);
|
setThreadNameWin32(ctx->name);
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||||
pthread_setname_np(pthread_self(), ctx->name);
|
pthread_setname_np(pthread_self(), ctx->name);
|
||||||
#elif defined(LC_DARWIN)
|
#elif defined(LC_DARWIN)
|
||||||
pthread_setname_np(ctx->name);
|
pthread_setname_np(ctx->name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue