From ec08632a29ed155ddf1ed4e44c9f82c2287fcff2 Mon Sep 17 00:00:00 2001 From: "roberto@mrspurr" Date: Sat, 19 Feb 2011 08:55:41 +0100 Subject: [PATCH] fixed python <= 2.5 support --- plugins/python/uwsgi_python.h | 4 ++++ 1 file changed, 4 insertions(+) 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);