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
commit072ceda0f99b24fd62ab973b5c3ee72810a8806e (patch)
tree5a82e6a0cbab7a06e8195d044be4cb6dfd8a78a6 /Python/random.c
parente84f94877c9aa493de46a6bd59140e515e00c0c9 (diff)
downloadcpython-072ceda0f99b24fd62ab973b5c3ee72810a8806e.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)