summaryrefslogtreecommitdiffstats
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-19 21:21:49 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-19 21:21:49 (GMT)
commit9eb57c5fa50ed2f57d9320bb575371868316b5f2 (patch)
tree8b3efac8aade853f1d94105eced8313e4bb11e23 /pyconfig.h.in
parent79d68f929d8def878766965f513b628023f809b5 (diff)
downloadcpython-9eb57c5fa50ed2f57d9320bb575371868316b5f2.zip
cpython-9eb57c5fa50ed2f57d9320bb575371868316b5f2.tar.gz
cpython-9eb57c5fa50ed2f57d9320bb575371868316b5f2.tar.bz2
Issue #22181: The availability of the getrandom() is now checked in configure,
and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define. Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 10426c7..c8ce976 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -395,6 +395,9 @@
/* Define to 1 if you have the `getpwent' function. */
#undef HAVE_GETPWENT
+/* Define to 1 if the Linux getrandom() syscall is available */
+#undef HAVE_GETRANDOM_SYSCALL
+
/* Define to 1 if you have the `getresgid' function. */
#undef HAVE_GETRESGID