summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-10-18 08:31:18 (GMT)
committerGitHub <noreply@github.com>2021-10-18 08:31:18 (GMT)
commitfd03917786a9036ee87b7df604dfb260cc2420c9 (patch)
treec54d0fc5e40ff0a0b5eb068daeb0c4fb3d5ed735 /Python
parent54a4e1b53a18f0c7420ba03de9608194c4413fc2 (diff)
downloadcpython-fd03917786a9036ee87b7df604dfb260cc2420c9.zip
cpython-fd03917786a9036ee87b7df604dfb260cc2420c9.tar.gz
cpython-fd03917786a9036ee87b7df604dfb260cc2420c9.tar.bz2
bpo-45434: Include stdlib.h for specialize stat (GH-29015)
Diffstat (limited to 'Python')
-rw-r--r--Python/specialize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index 529eabf..264637d 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -1,4 +1,3 @@
-
#include "Python.h"
#include "pycore_code.h"
#include "pycore_dict.h"
@@ -8,6 +7,8 @@
#include "opcode.h"
#include "structmember.h" // struct PyMemberDef, T_OFFSET_EX
+#include <stdlib.h> // rand()
+
/* For guidance on adding or extending families of instructions see
* ./adaptive.md
*/