diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-10-22 16:04:30 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-10-22 16:04:30 +0300 |
commit | e54f5f3dc8ec281bbc17e4092d168ea32ae099d7 (patch) | |
tree | b3d2065ff2fbb23ee25ddfd6dfd1a17cc16acae3 /src/nxt_python_wsgi.c | |
parent | 0beb8ea5e13befbe607a107c3e8093226848811a (diff) | |
download | unit-e54f5f3dc8ec281bbc17e4092d168ea32ae099d7.tar.gz unit-e54f5f3dc8ec281bbc17e4092d168ea32ae099d7.tar.bz2 |
Python: fixing build for Python 3.8.
Thanks to tonyafanasyev.
This is related to #331 issue on GitHub.
Diffstat (limited to 'src/nxt_python_wsgi.c')
-rw-r--r-- | src/nxt_python_wsgi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c index a6d5f217..977c2998 100644 --- a/src/nxt_python_wsgi.c +++ b/src/nxt_python_wsgi.c @@ -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 }; |