diff --git a/plugins/python/uwsgi_python.h b/plugins/python/uwsgi_python.h index 4bc4c750..cd778ad5 100644 --- a/plugins/python/uwsgi_python.h +++ b/plugins/python/uwsgi_python.h @@ -22,6 +22,10 @@ #define HAS_NOT_PyFrame_GetLineNumber #endif +#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 2 +#define HAS_NOT_PyFrame_GetLineNumber +#endif + #if PY_MAJOR_VERSION > 2 #define PYTHREE #endif