summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2016-11-12 16:39:52 -0500
committerNed Deily <nad@python.org>2016-11-12 16:39:52 -0500
commitcf767ab4dac1315da42d283eb9bf8e5de225511d (patch)
treed9060d3a80cd374c351267a9ddae0d956ef1d26e /Python
parenta8f2f5ab0d40d654946a2988e0c8d390bcf790a5 (diff)
parent7d895d3c37e2ff5189d2d8b71def4e2fee34f10b (diff)
downloadcpython-git-cf767ab4dac1315da42d283eb9bf8e5de225511d.tar.gz
Issue #28676: merge from 3.6
Diffstat (limited to 'Python')
-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