1
0
zrcadlo https://github.com/luanti-org/luanti.git synchronizováno 2025-11-05 09:45:30 +01:00

NetBSD build fix proposal. (#10308)

Fixing thread naming call and let the class setting RANDOM_MIN/RANDOM_MAX.
Tento commit je obsažen v:
David CARLIER
2020-08-25 19:50:41 +01:00
odevzdal GitHub
rodič 44c98089cf
revize b262184acf
2 změnil soubory, kde provedl 8 přidání a 1 odebrání

Zobrazit soubor

@@ -29,6 +29,13 @@
#include "exceptions.h"
#include "util/string.h"
#if defined(RANDOM_MIN)
#undef RANDOM_MIN
#endif
#if defined(RANDOM_MAX)
#undef RANDOM_MAX
#endif
extern FlagDesc flagdesc_noiseparams[];
// Note: this class is not polymorphic so that its high level of

Zobrazit soubor

@@ -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__)