Changeset - r28530:9741a9739150
[Not reviewed]
master
0 1 0
Patric Stout - 11 months ago 2024-01-20 20:43:06
truebrain@openttd.org
Fix bd85f61a: [Linux] don't include sys/random.h on older glibc systems (#11844)
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/core/random_func.cpp
Show inline comments
 
@@ -24,10 +24,12 @@
 
#if defined(_WIN32)
 
#	include <windows.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__)
 
#	include <emscripten.h>
 
#elif !defined(__APPLE__) && !defined(__NetBSD__) && !defined(__FreeBSD__)
 
#	include <sys/random.h>
 
#endif
 

	
 
#include "../safeguards.h"
0 comments (0 inline, 0 general)