summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Modules/_bisectmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/Modules/_bisectmodule.c')
-rw-r--r--contrib/tools/python3/Modules/_bisectmodule.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/tools/python3/Modules/_bisectmodule.c b/contrib/tools/python3/Modules/_bisectmodule.c
index d79946c8406..9b146265445 100644
--- a/contrib/tools/python3/Modules/_bisectmodule.c
+++ b/contrib/tools/python3/Modules/_bisectmodule.c
@@ -3,8 +3,12 @@
Converted to C by Dmitry Vasiliev (dima at hlabs.spb.ru).
*/
-#define PY_SSIZE_T_CLEAN
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "Python.h"
+#include "pycore_call.h" // _PyObject_CallMethod()
/*[clinic input]
module _bisect
@@ -458,6 +462,7 @@ bisect_modexec(PyObject *m)
static PyModuleDef_Slot bisect_slots[] = {
{Py_mod_exec, bisect_modexec},
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
+ {Py_mod_gil, Py_MOD_GIL_NOT_USED},
{0, NULL}
};