Skip to content

Commit 9e279cb

Browse files
committed
Fix build issues
1 parent 5b6a279 commit 9e279cb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tornado/speedups.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,21 @@ static PyObject* websocket_mask(PyObject* self, PyObject* args) {
5151
return result;
5252
}
5353

54+
static int speedups_exec(PyObject *module) {
55+
return 0;
56+
}
57+
5458
static PyMethodDef methods[] = {
5559
{"websocket_mask", websocket_mask, METH_VARARGS, ""},
5660
{NULL, NULL, 0, NULL}
5761
};
5862

5963
static PyModuleDef_Slot slots[] = {
60-
#if PY_VERSION_HEX >= 0x030c0000
64+
{Py_mod_exec, speedups_exec},
65+
#if (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030c0000) || Py_LIMITED_API >= 0x030c0000
6166
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
6267
#endif
63-
#if PY_VERSION_HEX >= 0x030d0000
68+
#if !defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000
6469
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
6570
#endif
6671
{0, NULL}

0 commit comments

Comments
 (0)