mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
disable thread naming for PowerPC (#1726)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
a272a2cb7e
commit
73e572b66b
@ -123,7 +123,7 @@ namespace util
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SetThreadName (const char *name) {
|
void SetThreadName (const char *name) {
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__) && !defined(__powerpc__)
|
||||||
pthread_setname_np((char*)name);
|
pthread_setname_np((char*)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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user