diff --git a/emu/threading.c b/emu/threading.c index 5ff682d..d96aadd 100644 --- a/emu/threading.c +++ b/emu/threading.c @@ -213,7 +213,11 @@ void threadname(char *name) { // TODO: make portable +#ifdef __APPLE__ + pthread_setname_np(name); +#else pthread_setname_np(pthread_self(), name); +#endif } int