mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-16 00:15:49 +00:00
build: Add __FreeBSD__ compilation condition for pthread_setname_np()
This commit is contained in:
parent
1176ca6409
commit
29f298ec88
@ -77,7 +77,7 @@ void* ThreadProc(void* context) {
|
||||
|
||||
#if defined(LC_WINDOWS)
|
||||
setThreadNameWin32(ctx->name);
|
||||
#elif defined(__linux__)
|
||||
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
pthread_setname_np(pthread_self(), ctx->name);
|
||||
#elif defined(LC_DARWIN)
|
||||
pthread_setname_np(ctx->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user