diff options
author | Ned Deily <nad@python.org> | 2016-11-12 21:34:25 (GMT) |
---|---|---|
committer | Ned Deily <nad@python.org> | 2016-11-12 21:34:25 (GMT) |
commit | 09231e657aeaea64ca425a387791c6fa09070221 (patch) | |
tree | 2109be76243b0bba8ccb28c0a330cab1aebc53be /Python/random.c | |
parent | 58b6b985a0612e52da7a975c7791f89e98c8fd0b (diff) | |
download | cpython-09231e657aeaea64ca425a387791c6fa09070221.zip cpython-09231e657aeaea64ca425a387791c6fa09070221.tar.gz cpython-09231e657aeaea64ca425a387791c6fa09070221.tar.bz2 |
Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.
Initial patch by Gareth Rees.
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/random.c b/Python/random.c index b4bc1f3..2f83b5d 100644 --- a/Python/random.c +++ b/Python/random.c @@ -3,6 +3,9 @@ #include <windows.h> #else #include <fcntl.h> +#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) +#include <sys/random.h> +#endif #endif #ifdef Py_DEBUG |