Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
118740e3
Commit
118740e3
authored
Nov 12, 2016
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.
Patch by Gareth Rees.
parent
2153c919
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Misc/NEWS
Misc/NEWS
+3
-0
Python/random.c
Python/random.c
+3
-2
No files found.
Misc/NEWS
View file @
118740e3
...
...
@@ -597,6 +597,9 @@ Build
-
Issue
#
10910
:
Avoid
C
++
compilation
errors
on
FreeBSD
and
OS
X
.
Also
update
FreedBSD
version
checks
for
the
original
ctype
UTF
-
8
workaround
.
-
Issue
#
28676
:
Prevent
missing
'getentropy'
declaration
warning
on
macOS
.
Patch
by
Gareth
Rees
.
What
's New in Python 3.5.2?
===========================
...
...
Python/random.c
View file @
118740e3
...
...
@@ -9,9 +9,10 @@
# ifdef HAVE_LINUX_RANDOM_H
# include <linux/random.h>
# endif
# if
def HAVE_GETRANDOM
# if
defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
# include <sys/random.h>
# elif defined(HAVE_GETRANDOM_SYSCALL)
# endif
# if !defined(HAVE_GETRANDOM) && defined(HAVE_GETRANDOM_SYSCALL)
# include <sys/syscall.h>
# endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment