From 49ccfa9203b8041beabda8c9b3637cb3a6bbc262 Mon Sep 17 00:00:00 2001 From: Frederic Weisbecker Date: Fri, 25 Feb 2011 21:30:16 +0100 Subject: [PATCH] --- yaml --- r: 234494 b: refs/heads/master c: cfff2d909cbdaf8c467bd321aa0502a548ec8f7e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/util/python.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 675d74fcadad..30dfd8c4a746 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ff9ae1babd8ce88c3f90db6278ea5f55bdcb4624 +refs/heads/master: cfff2d909cbdaf8c467bd321aa0502a548ec8f7e diff --git a/trunk/tools/perf/util/python.c b/trunk/tools/perf/util/python.c index 5317ef229041..a9f2d7e1204d 100644 --- a/trunk/tools/perf/util/python.c +++ b/trunk/tools/perf/util/python.c @@ -8,6 +8,11 @@ #include "cpumap.h" #include "thread_map.h" +/* Define PyVarObject_HEAD_INIT for python 2.5 */ +#ifndef PyVarObject_HEAD_INIT +# define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(type) size, +#endif + struct throttle_event { struct perf_event_header header; u64 time;