summaryrefslogtreecommitdiffstats
path: root/Python/random.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-01-02 04:30:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2017-01-02 04:30:26 (GMT)
commit46322587ecb725c99211c3365a7ba2cbfc574403 (patch)
tree38477ea4ba7cb891e59f4568ea0262fdd20b3427 /Python/random.c
parent51b45a1093e8820ceb3dc04619d62c2e15873302 (diff)
parent493ac1bbe02a57d08e0f8a76b436626f86b03796 (diff)
downloadcpython-46322587ecb725c99211c3365a7ba2cbfc574403.zip
cpython-46322587ecb725c99211c3365a7ba2cbfc574403.tar.gz
cpython-46322587ecb725c99211c3365a7ba2cbfc574403.tar.bz2
merge 3.5 (#29057)
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 f9d600f..0f945a3 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -12,7 +12,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)