mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 21:21:53 +00:00
fixed profiler compilation in older python
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
extern struct uwsgi_server uwsgi;
|
||||
|
||||
#ifndef PyFrame_GetLineNumber
|
||||
#ifdef HAS_NOT_PyFrame_GetLineNumber
|
||||
int PyFrame_GetLineNumber(PyFrameObject *frame) {
|
||||
if (frame->f_trace) {
|
||||
return frame->f_lineno;
|
||||
|
||||
Reference in New Issue
Block a user