Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.

Patch by Gareth Rees.
This commit is contained in:
Ned Deily 2016-11-12 16:35:48 -05:00
parent 022371ff94
commit 7ae4112649
2 changed files with 6 additions and 2 deletions

View File

@ -597,6 +597,9 @@ Build
- Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.
Also update FreedBSD version checks for the original ctype UTF-8 workaround.
- Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.
Patch by Gareth Rees.
What's New in Python 3.5.2?
===========================

View File

@ -9,9 +9,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