Browse Source

use correct function for thread naming on OpenBSD

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1601/head
R4SAS 4 years ago
parent
commit
bfc3acb834
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      libi2pd/util.cpp

2
libi2pd/util.cpp

@ -121,7 +121,7 @@ namespace util @@ -121,7 +121,7 @@ namespace util
void SetThreadName (const char *name) {
#if defined (__APPLE__)
pthread_setname_np(name);
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
pthread_set_name_np(pthread_self(), name);
#else
pthread_setname_np(pthread_self(), name);

Loading…
Cancel
Save