1
0
mirror of https://github.com/aap/pdp6.git synced 2026-03-05 11:04:41 +00:00

emu/threading.c (threadname): OSX sucks.

This commit is contained in:
Alfred M. Szmidt
2024-02-19 17:45:23 +01:00
parent ebe85645a1
commit 5aa4e4424c

View File

@@ -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