Skip to content

Commit

Permalink
Fix compile issue for iOS (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcstuber authored Oct 15, 2024
1 parent afa6447 commit 283f472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ HL_PRIM void hl_thread_set_name( hl_thread *t, const char *name ) {
// nothing
#elif defined(HL_WIN)
SetThreadName((DWORD)(int_val)t,name);
#elif defined(HL_MAC)
#elif defined(HL_MAC) || defined(HL_IOS)
// pthread_setname_np only possible for current thread
#else
pthread_setname_np((pthread_t)t,name);
Expand Down

0 comments on commit 283f472

Please sign in to comment.