Commit 09231e65 authored by Ned Deily's avatar Ned Deily

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

Initial patch by Gareth Rees.
parent 58b6b985
...@@ -295,6 +295,9 @@ Build ...@@ -295,6 +295,9 @@ Build
- Issue #27806: Fix 32-bit builds on macOS Sierra 10.12 broken by removal of - 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. 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 Tools/Demos
----------- -----------
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
#include <windows.h> #include <windows.h>
#else #else
#include <fcntl.h> #include <fcntl.h>
#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
#include <sys/random.h>
#endif
#endif #endif
#ifdef Py_DEBUG #ifdef Py_DEBUG
......
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