diff options
Diffstat (limited to 'tools/perf/util/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index 5317ef22904..a9f2d7e1204 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c | |||
| @@ -8,6 +8,11 @@ | |||
| 8 | #include "cpumap.h" | 8 | #include "cpumap.h" |
| 9 | #include "thread_map.h" | 9 | #include "thread_map.h" |
| 10 | 10 | ||
| 11 | /* Define PyVarObject_HEAD_INIT for python 2.5 */ | ||
| 12 | #ifndef PyVarObject_HEAD_INIT | ||
| 13 | # define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(type) size, | ||
| 14 | #endif | ||
| 15 | |||
| 11 | struct throttle_event { | 16 | struct throttle_event { |
| 12 | struct perf_event_header header; | 17 | struct perf_event_header header; |
| 13 | u64 time; | 18 | u64 time; |
