aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2012-07-10 09:37:56 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-08-30 12:12:04 -0400
commita4b5730567195521f00d38ab5513d0185554da33 (patch)
tree94fbee4030a6d1caae16c339d906c0dfc3e6d7ea
parente9dde33d234905f321163c617feca3d57b98a4b6 (diff)
downloadlinux-yocto-a4b5730567195521f00d38ab5513d0185554da33.tar.gz
linux-yocto-a4b5730567195521f00d38ab5513d0185554da33.tar.bz2
linux-yocto-a4b5730567195521f00d38ab5513d0185554da33.zip
perf: add sgidefs.h to for mips builds
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.zanussi@intel.com>
-rw-r--r--tools/perf/scripts/python/Perf-Trace-Util/Context.c4
-rw-r--r--tools/perf/util/scripting-engines/trace-event-python.c4
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 fcd1dd667906..43cf40a42bad 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 e0203b979474..df1e52590d79 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>