Python: fixing build for Python 3.8.

Thanks to tonyafanasyev.
This is related to #331 issue on GitHub.
This commit is contained in:
Max Romanov
2019-10-22 16:04:30 +03:00
parent 0beb8ea5e1
commit e54f5f3dc8
2 changed files with 8 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ static PyTypeObject nxt_py_input_type = {
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 3
0, /* tp_finalize */
#endif
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 8
0, /* tp_vectorcall */
0, /* tp_print */
#endif
};