only include sys/random.h if it seems like it might have something useful (#29057)
This commit is contained in:
parent
ea02cdc7ec
commit
2f7d13c662
|
@ -3,7 +3,7 @@
|
|||
#include <windows.h>
|
||||
#else
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_SYS_RANDOM_H
|
||||
#if defined(HAVE_SYS_RANDOM_H) && (defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY))
|
||||
#include <sys/random.h>
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue