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 c9d4c60a56
commit 493ac1bbe0
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
# ifdef HAVE_LINUX_RANDOM_H
# include <linux/random.h>
# endif
# ifdef HAVE_SYS_RANDOM_H
# if defined(HAVE_SYS_RANDOM_H) && (defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY))
# include <sys/random.h>
# endif
# if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL)