changeset: 105077:828251c2bccf branch: 2.7 parent: 105074:b968faeb8d1b user: Ned Deily date: Sat Nov 12 16:34:25 2016 -0500 files: Misc/NEWS Python/random.c description: Issue #28676: Prevent missing 'getentropy' declaration warning on macOS. Initial patch by Gareth Rees. diff -r b968faeb8d1b -r 828251c2bccf Misc/NEWS --- a/Misc/NEWS Sat Nov 12 22:47:16 2016 +0200 +++ b/Misc/NEWS Sat Nov 12 16:34:25 2016 -0500 @@ -295,6 +295,9 @@ - Issue #27806: Fix 32-bit builds on macOS Sierra 10.12 broken by removal of deprecated QuickTime/QuickTime.h header file. Patch by Aleks Bunin. +- Issue #28676: Prevent missing 'getentropy' declaration warning on macOS. + Initial patch by Gareth Rees. + Tools/Demos ----------- diff -r b968faeb8d1b -r 828251c2bccf Python/random.c --- a/Python/random.c Sat Nov 12 22:47:16 2016 +0200 +++ b/Python/random.c Sat Nov 12 16:34:25 2016 -0500 @@ -3,6 +3,9 @@ #include #else #include +#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) +#include +#endif #endif #ifdef Py_DEBUG