diff --git a/Misc/NEWS b/Misc/NEWS index 73247ee2f2a..59785c3785c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -68,6 +68,12 @@ Tests - Issue #23839: Various caches now are cleared before running every test file. +Build +----- + +- Issue #28676: Prevent missing 'getentropy' declaration warning on macOS. + Patch by Gareth Rees. + What's New in Python 3.6.0 beta 3 ================================= diff --git a/Python/random.c b/Python/random.c index 6f9f7110742..46e3bb55941 100644 --- a/Python/random.c +++ b/Python/random.c @@ -12,9 +12,10 @@ # ifdef HAVE_LINUX_RANDOM_H # include # endif -# ifdef HAVE_GETRANDOM +# if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) # include -# elif defined(HAVE_GETRANDOM_SYSCALL) +# endif +# if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL) # include # endif #endif