diff --git a/plugins/python/uwsgi_python.h b/plugins/python/uwsgi_python.h index 10e6a15c..5bf263d7 100644 --- a/plugins/python/uwsgi_python.h +++ b/plugins/python/uwsgi_python.h @@ -32,6 +32,10 @@ #define UWSGI_RELEASE_GIL #endif +#ifndef PyVarObject_HEAD_INIT +#define PyVarObject_HEAD_INIT(x, y) PyObject_HEAD_INIT(x) y, +#endif + PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int); PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, Py_ssize_t);