[Python-checkins] bpo-45434: Include stdlib.h for specialize stat (GH-29015)

corona10 webhook-mailer at python.org
Mon Oct 18 04:31:33 EDT 2021


https://github.com/python/cpython/commit/fd03917786a9036ee87b7df604dfb260cc2420c9
commit: fd03917786a9036ee87b7df604dfb260cc2420c9
branch: main
author: Dong-hee Na <donghee.na at python.org>
committer: corona10 <donghee.na92 at gmail.com>
date: 2021-10-18T17:31:18+09:00
summary:

bpo-45434: Include stdlib.h for specialize stat (GH-29015)

files:
M Python/specialize.c

diff --git a/Python/specialize.c b/Python/specialize.c
index 529eabf6bc3ab..264637dc96856 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
  */



More information about the Python-checkins mailing list