1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix build

This commit is contained in:
Ivan Savenko
2024-02-11 19:28:18 +02:00
parent cded8b1999
commit 19ccef7131
2 changed files with 2 additions and 4 deletions

View File

@@ -105,12 +105,12 @@ void setThreadName(const std::string &name)
//not supported
#endif
#elif defined(VCMI_UNIX)
prctl(PR_SET_NAME, name.c_str(), 0, 0, 0);
#elif defined(VCMI_APPLE)
pthread_setname_np(name.c_str());
#elif defined(VCMI_HAIKU)
rename_thread(find_thread(NULL), name.c_str());
#elif defined(VCMI_UNIX)
prctl(PR_SET_NAME, name.c_str(), 0, 0, 0);
#endif
}