From: Tom Zanussi <tom.zanu...@intel.com> Allow Python.h to find the definitions it needs on mips i.e. get rid of the error: "_ABIN32" is not defined.
Signed-off-by: Tom Zanussi <tom.zanu...@intel.com> --- .../perf/scripts/python/Perf-Trace-Util/Context.c | 4 ++++ .../util/scripting-engines/trace-event-python.c | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/tools/perf/scripts/python/Perf-Trace-Util/Context.c b/tools/perf/scripts/python/Perf-Trace-Util/Context.c index 315067b..57d3aa3 100644 --- a/tools/perf/scripts/python/Perf-Trace-Util/Context.c +++ b/tools/perf/scripts/python/Perf-Trace-Util/Context.c @@ -19,6 +19,10 @@ * */ +#ifdef __mips__ +#include <sgidefs.h> +#endif + #include <Python.h> #include "../../../perf.h" #include "../../../util/trace-event.h" diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 6ccf70e..460c474 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c @@ -19,6 +19,10 @@ * */ +#ifdef __mips__ +#include <sgidefs.h> +#endif + #include <Python.h> #include <stdio.h> -- 1.7.0.4 _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto