add a specific configure check for sys/random.h (closes #28932)

This commit is contained in:
Benjamin Peterson 2016-12-19 23:54:25 -08:00
parent 6165d55f13
commit fb2ae15c67
5 changed files with 8 additions and 3 deletions

View file

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