summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-12-20 07:54:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-12-20 07:54:25 (GMT)
commit6b1c909c08979b5e7fbf7dc4f5b2adcf256ba06d (patch)
tree0ec4f99cb3b0ac904eb26f45a80396b1b7bcd6f3 /Python
parente126f98658b2d0713506e4a7bfd437dec5f6ca9d (diff)
downloadcpython-6b1c909c08979b5e7fbf7dc4f5b2adcf256ba06d.zip
cpython-6b1c909c08979b5e7fbf7dc4f5b2adcf256ba06d.tar.gz
cpython-6b1c909c08979b5e7fbf7dc4f5b2adcf256ba06d.tar.bz2
add a specific configure check for sys/random.h (closes #28932)
Diffstat (limited to 'Python')
-rw-r--r--Python/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c
index 2f83b5d..08b2a99 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -3,7 +3,7 @@
#include <windows.h>
#else
#include <fcntl.h>
-#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
+#ifdef HAVE_SYS_RANDOM_H
#include <sys/random.h>
#endif
#endif