(original) (raw)

changeset: 105759:2f004cc84153 branch: 3.5 parent: 105755:cc40470c10f8 user: Benjamin Peterson benjamin@python.org date: Mon Dec 19 23:54:25 2016 -0800 files: Misc/NEWS Python/random.c configure configure.ac pyconfig.h.in description: add a specific configure check for sys/random.h (closes #28932) diff -r cc40470c10f8 -r 2f004cc84153 Misc/NEWS --- a/Misc/NEWS Tue Dec 20 09:54:24 2016 +0900 +++ b/Misc/NEWS Mon Dec 19 23:54:25 2016 -0800 @@ -10,6 +10,8 @@ Core and Builtins ----------------- +- Issue #28932: Do not include if it does not exist. + - Issue #28147: Fix a memory leak in split-table dictionaries: setattr() must not convert combined table into split table. diff -r cc40470c10f8 -r 2f004cc84153 Python/random.c --- a/Python/random.c Tue Dec 20 09:54:24 2016 +0900 +++ b/Python/random.c Mon Dec 19 23:54:25 2016 -0800 @@ -9,7 +9,7 @@ # ifdef HAVE_LINUX_RANDOM_H # include # endif -# if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) +# ifdef HAVE_SYS_RANDOM_H # include # endif # if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL) diff -r cc40470c10f8 -r 2f004cc84153 configure --- a/configure Tue Dec 20 09:54:24 2016 +0900 +++ b/configure Mon Dec 19 23:54:25 2016 -0800 @@ -7714,7 +7714,7 @@ poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ -sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ +sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ diff -r cc40470c10f8 -r 2f004cc84153 configure.ac --- a/configure.ac Tue Dec 20 09:54:24 2016 +0900 +++ b/configure.ac Mon Dec 19 23:54:25 2016 -0800 @@ -1946,7 +1946,7 @@ poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ -sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ +sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ diff -r cc40470c10f8 -r 2f004cc84153 pyconfig.h.in --- a/pyconfig.h.in Tue Dec 20 09:54:24 2016 +0900 +++ b/pyconfig.h.in Mon Dec 19 23:54:25 2016 -0800 @@ -1005,6 +1005,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_POLL_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_RANDOM_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_RESOURCE_H/benjamin@python.org