summaryrefslogtreecommitdiff
path: root/Python/random.c
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2016-11-12 16:38:03 -0500
committerNed Deily <nad@python.org>2016-11-12 16:38:03 -0500
commit442af809d6608306764d5e013e097b6e30ac9c61 (patch)
tree5ae559b33de11ddc88a8c775e9e8ffb929253363 /Python/random.c
parent93a5bf65f2d0b5a8a644d1b8ef30d4a3bd128917 (diff)
parent3848a693dfe11b1d153089321390ee9ea9927b1a (diff)
downloadcpython-442af809d6608306764d5e013e097b6e30ac9c61.tar.gz
Issue #28676: merge from 3.5
Diffstat (limited to 'Python/random.c')
-rw-r--r--Python/random.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/random.c b/Python/random.c
index 6f9f711074..46e3bb5594 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -12,9 +12,10 @@
# ifdef HAVE_LINUX_RANDOM_H
# include <linux/random.h>
# endif
-# ifdef HAVE_GETRANDOM
+# if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
# include <sys/random.h>
-# elif defined(HAVE_GETRANDOM_SYSCALL)
+# endif
+# if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL)
# include <sys/syscall.h>
# endif
#endif