Skip to content

Commit 38f225d

Browse files
committed
merge 3.6 (python#28932)
2 parents 2ea5bfe + b0eb986 commit 38f225d

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
@@ -13,6 +13,8 @@ Core and Builtins
1313
- Issue #28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII
1414
whitespace, not only spaces. Patch by Robert Xiao.
1515

16+
- Issue #28932: Do not include <sys/random.h> if it does not exist.
17+
1618
- Issue #25677: Correct the positioning of the syntax error caret for
1719
indented blocks. Based on patch by Michael Layzell.
1820

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
@@ -1036,6 +1036,9 @@
10361036
/* Define to 1 if you have the <sys/poll.h> header file. */
10371037
#undef HAVE_SYS_POLL_H
10381038

1039+
/* Define to 1 if you have the <sys/random.h> header file. */
1040+
#undef HAVE_SYS_RANDOM_H
1041+
10391042
/* Define to 1 if you have the <sys/resource.h> header file. */
10401043
#undef HAVE_SYS_RESOURCE_H
10411044

0 commit comments

Comments
 (0)