Build 10527
GIT-
On FreeBSD and OpenBSD use `pthread_get_name_np` spelling instead of `pthread_getname_np`
Mostra dettagli
Annoyingly, these functions are spelt differently on different OSes.
-
Use strerror_r() on FreeBSD and OpenBSD
Mostra dettagli
strerror_r has been available since FreeBSD 4.4 and OpenBSD 3.3 (both many years ago).
-
Fix -Wundef warning: check that _POSIX_C_SOURCE is defined before checking it
-
Fix possibly lossy truncation from uint64_t/long to unsigned
-
Use getthrid() on OpenBSD for fallback thread global thread id
Mostra dettagli
This fixes a compiler error on that platform, because of the nearby assumption that pthread_t is an integer type, when it is in fact a pointer on OpenBSD (and macOS).