fixed profiler compilation in older python

This commit is contained in:
roberto@freebsd64
2011-05-14 07:08:33 +02:00
parent 9435693865
commit c1ea05b925
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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;