]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106320: Fix specialize.c compilation by including pycore_pylifecycle.h (#106434)
authorGuido van Rossum <guido@python.org>
Tue, 4 Jul 2023 21:42:12 +0000 (14:42 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2023 21:42:12 +0000 (21:42 +0000)
Compilation of Python/specialize.c was broken on macOS for me by gh-106400.

Python/specialize.c

index 22c58e2c46fc362786f4759561ffcebd2f7ade5f..a3fce2e67759129579edbd3a05f928783ccc4217 100644 (file)
@@ -9,6 +9,7 @@
 #include "pycore_opcode.h"        // _PyOpcode_Caches
 #include "structmember.h"         // struct PyMemberDef, T_OFFSET_EX
 #include "pycore_descrobject.h"
+#include "pycore_pylifecycle.h"   // _PyOS_URandomNonblock()
 
 #include <stdlib.h> // rand()