summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-12-19 23:54:25 -0800
committerBenjamin Peterson <benjamin@python.org>2016-12-19 23:54:25 -0800
commitfb2ae15c6704a072afeef4786749d9bb2ce7d68d (patch)
treeeb8e9052b3855dd2bfd772114b4728455e56c518 /Python/random.c
parent6165d55f1398ddf1cbd21e237129af7116a1fa73 (diff)
downloadcpython-git-fb2ae15c6704a072afeef4786749d9bb2ce7d68d.tar.gz
add a specific configure check for sys/random.h (closes #28932)
Diffstat (limited to 'Python/random.c')
-rw-r--r--Python/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c
index 154f6f9684..944ef31ee2 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -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)