Skip to content

Commit b0eb986

Browse files
committed
merge 3.5 (python#28932)
2 parents 7f5954d + fb2ae15 commit b0eb986

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ What's New in Python 3.6.1 release candidate 1
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #28932: Do not include <sys/random.h> if it does not exist.
14+
1315
- Issue #25677: Correct the positioning of the syntax error caret for
1416
indented blocks. Based on patch by Michael Layzell.
1517

Python/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# ifdef HAVE_LINUX_RANDOM_H
1313
# include <linux/random.h>
1414
# endif
15-
# if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
15+
# ifdef HAVE_SYS_RANDOM_H
1616
# include <sys/random.h>
1717
# endif
1818
# if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL)

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7763,7 +7763,7 @@ unistd.h utime.h \
77637763
poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
77647764
sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
77657765
sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
7766-
sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
7766+
sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
77677767
sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
77687768
sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
77697769
libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ unistd.h utime.h \
20192019
poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
20202020
sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
20212021
sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
2022-
sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
2022+
sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
20232023
sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
20242024
sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
20252025
libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \

pyconfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,9 @@
10331033
/* Define to 1 if you have the <sys/poll.h> header file. */
10341034
#undef HAVE_SYS_POLL_H
10351035

1036+
/* Define to 1 if you have the <sys/random.h> header file. */
1037+
#undef HAVE_SYS_RANDOM_H
1038+
10361039
/* Define to 1 if you have the <sys/resource.h> header file. */
10371040
#undef HAVE_SYS_RESOURCE_H
10381041

0 commit comments

Comments
 (0)