OpenBSD supports thread name feature since 6.5 (#14968)

as it is 6.6 soon it is safe to go.
This commit is contained in:
David CARLIER 2019-09-07 09:45:10 +01:00 committed by Anton Kochkov
parent 7bcac956b1
commit 5e753b46b7

View File

@ -90,7 +90,7 @@ R_API bool r_th_getname(RThread *th, char *name, size_t len) {
eprintf ("Failed to get thread name\n");
return false;
}
#elif (__FreeBSD__ && __FreeBSD_version >= 1200000) || __DragonFly__ /* || __OpenBSD__ TODO after nxt rel. */
#elif (__FreeBSD__ && __FreeBSD_version >= 1200000) || __DragonFly__ || (__OpenBSD__ && OpenBSD >= 201905)
pthread_get_name_np (th->tid, name, len);
#else
#pragma message("warning r_th_getname not implemented")