mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
NetBSD build fix proposal. (#10308)
Fixing thread naming call and let the class setting RANDOM_MIN/RANDOM_MAX.
This commit is contained in:
parent
44c98089cf
commit
b262184acf
2 changed files with 8 additions and 1 deletions
|
@ -219,7 +219,7 @@ void Thread::setName(const std::string &name)
|
|||
|
||||
#elif defined(__NetBSD__)
|
||||
|
||||
pthread_setname_np(pthread_self(), name.c_str());
|
||||
pthread_setname_np(pthread_self(), "%s", const_cast<char*>(name.c_str()));
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue