mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 01:46:36 +02:00
fix thread setname on NetBSD
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
fd73aab7d0
commit
5931cb59ab
1 changed files with 9 additions and 7 deletions
|
@ -123,6 +123,8 @@ namespace util
|
||||||
pthread_setname_np(name);
|
pthread_setname_np(name);
|
||||||
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||||
pthread_set_name_np(pthread_self(), name);
|
pthread_set_name_np(pthread_self(), name);
|
||||||
|
#elif defined(__NetBSD__)
|
||||||
|
pthread_setname_np(pthread_self(), "%s", (void *)name);
|
||||||
#else
|
#else
|
||||||
pthread_setname_np(pthread_self(), name);
|
pthread_setname_np(pthread_self(), name);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue