[Python-checkins] cpython (merge 3.6 -> default): merge 3.6 (#29057)

benjamin.peterson python-checkins at python.org
Sun Jan 1 23:31:02 EST 2017


https://hg.python.org/cpython/rev/bb0d145b43a3
changeset:   105954:bb0d145b43a3
parent:      105949:4ec60ce3dc3a
parent:      105953:5d0cb1fd79ea
user:        Benjamin Peterson <benjamin at python.org>
date:        Sun Jan 01 22:30:35 2017 -0600
summary:
  merge 3.6 (#29057)

files:
  Python/random.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/random.c b/Python/random.c
--- 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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list