Build 10527
GIT-
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
Show details
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).
-
Fix minor warning about unused variable
Show details
In the final else, buff is not used, so duplicated into the branches where it is actually used.