OpenBSD utility build update.
This commit is contained in:
parent
0d10f11a7f
commit
edcf9cb624
@ -44,7 +44,7 @@
|
|||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
# include <pthread_np.h>
|
# include <pthread_np.h>
|
||||||
#endif
|
#endif
|
||||||
@ -102,6 +102,8 @@ namespace VS
|
|||||||
pthread_set_name_np(pthread_self(), name);
|
pthread_set_name_np(pthread_self(), name);
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
pthread_setname_np(pthread_self(), "%s", const_cast<char *>(name));
|
pthread_setname_np(pthread_self(), "%s", const_cast<char *>(name));
|
||||||
|
#elif defined(__OpenBSD__)
|
||||||
|
pthread_set_name_np(pthread_self(), const_cast<char *>(name));
|
||||||
#elif defined(__HAIKU__)
|
#elif defined(__HAIKU__)
|
||||||
rename_thread(find_thread(nullptr), name);
|
rename_thread(find_thread(nullptr), name);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user