Browse Source

disable pthread_setname_np on GNU/Hurd

which does not exist on GNU/Hurd
pull/1688/head
yangfl 3 years ago
parent
commit
3f46ca41ca
  1. 2
      libi2pd/util.cpp

2
libi2pd/util.cpp

@ -129,7 +129,7 @@ namespace util @@ -129,7 +129,7 @@ namespace util
pthread_set_name_np(pthread_self(), name);
#elif defined(__NetBSD__)
pthread_setname_np(pthread_self(), "%s", (void *)name);
#else
#elif !defined(__gnu_hurd__)
pthread_setname_np(pthread_self(), name);
#endif
}

Loading…
Cancel
Save