mirror of https://github.com/OpenTTD/OpenTTD
Fix bd85f61a: [Linux] don't include sys/random.h on older glibc systems (#11844)
parent
fa479c4a7c
commit
71b8801b61
|
@ -24,10 +24,12 @@
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include <bcrypt.h>
|
# include <bcrypt.h>
|
||||||
|
#elif defined(__APPLE__) || defined(__NetBSD__) || defined(__FreeBSD__)
|
||||||
|
// No includes required.
|
||||||
|
#elif defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 25)))
|
||||||
|
# include <sys/random.h>
|
||||||
#elif defined(__EMSCRIPTEN__)
|
#elif defined(__EMSCRIPTEN__)
|
||||||
# include <emscripten.h>
|
# include <emscripten.h>
|
||||||
#elif !defined(__APPLE__) && !defined(__NetBSD__) && !defined(__FreeBSD__)
|
|
||||||
# include <sys/random.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../safeguards.h"
|
#include "../safeguards.h"
|
||||||
|
|
Loading…
Reference in New Issue