Commit 118740e3 authored by Ned Deily's avatar Ned Deily

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

Patch by Gareth Rees.
parent 2153c919
...@@ -597,6 +597,9 @@ Build ...@@ -597,6 +597,9 @@ Build
- Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X. - Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.
Also update FreedBSD version checks for the original ctype UTF-8 workaround. 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? What's New in Python 3.5.2?
=========================== ===========================
......
...@@ -9,9 +9,10 @@ ...@@ -9,9 +9,10 @@
# ifdef HAVE_LINUX_RANDOM_H # ifdef HAVE_LINUX_RANDOM_H
# include <linux/random.h> # include <linux/random.h>
# endif # endif
# ifdef HAVE_GETRANDOM # if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
# include <sys/random.h> # include <sys/random.h>
# elif defined(HAVE_GETRANDOM_SYSCALL) # endif
# if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL)
# include <sys/syscall.h> # include <sys/syscall.h>
# endif # endif
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment