only include sys/random.h if it seems like it might have something useful (#29057)

This commit is contained in:
Benjamin Peterson 2017-01-01 22:29:36 -06:00
parent ea02cdc7ec
commit 2f7d13c662
1 changed files with 1 additions and 1 deletions

View File

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