diff options
Diffstat (limited to 'recipes-kernel/linux/files/features/perf/perf-add-sgidefs.h-to-for-mips-builds.patch')
-rw-r--r-- | recipes-kernel/linux/files/features/perf/perf-add-sgidefs.h-to-for-mips-builds.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/features/perf/perf-add-sgidefs.h-to-for-mips-builds.patch b/recipes-kernel/linux/files/features/perf/perf-add-sgidefs.h-to-for-mips-builds.patch new file mode 100644 index 0000000..700146f --- /dev/null +++ b/recipes-kernel/linux/files/features/perf/perf-add-sgidefs.h-to-for-mips-builds.patch @@ -0,0 +1,47 @@ +From 6297e4c1d57e1063bfce297c2e12392348598559 Mon Sep 17 00:00:00 2001 +From: Tom Zanussi <tom.zanussi@intel.com> +Date: Tue, 10 Jul 2012 09:37:56 -0500 +Subject: [PATCH] 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> +--- + .../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 c2623c6..1d52d7e 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.5.4 + |