Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d895d3

Browse files
committed
Issue #28676: merge from 3.5
2 parents 58d3e54 + 7ae4112 commit 7d895d3

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ Tests
6868

6969
- Issue #23839: Various caches now are cleared before running every test file.
7070

71+
Build
72+
-----
73+
74+
- Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.
75+
Patch by Gareth Rees.
76+
7177

7278
What's New in Python 3.6.0 beta 3
7379
=================================

Python/random.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# ifdef HAVE_LINUX_RANDOM_H
1313
# include <linux/random.h>
1414
# endif
15-
# ifdef HAVE_GETRANDOM
15+
# if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
1616
# include <sys/random.h>
17-
# elif defined(HAVE_GETRANDOM_SYSCALL)
17+
# endif
18+
# if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL)
1819
# include <sys/syscall.h>
1920
# endif
2021
#endif

0 commit comments

Comments
 (0)