aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2019-07-25 10:41:37 -0700
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-07-25 15:43:32 -0400
commitdbee104a34030b874330983b8415ce2fadc9ada6 (patch)
tree8dfcfc6b4772b184d9968491cee0110c10a2338a
parent7ba5e123f93e120ffd365cd5eab7553c82e513aa (diff)
downloadtrace-cmd-dbee104a34030b874330983b8415ce2fadc9ada6.tar.gz
trace-cmd: Add missing headers to Python template
The templates that generate Python bindings are missing some headers that result in compile-time warnings. This adds the missing headers where needed. Link: http://lore.kernel.org/linux-trace-devel/20190725174138.3724131-3-chutzpah@gentoo.org Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r--python/ctracecmd.i1
-rw-r--r--python/ctracecmdgui.i1
2 files changed, 2 insertions, 0 deletions
diff --git a/python/ctracecmd.i b/python/ctracecmd.i
index 2601d39a..01cd0d55 100644
--- a/python/ctracecmd.i
+++ b/python/ctracecmd.i
@@ -16,6 +16,7 @@
%{
#include "trace-cmd.h"
#include "event-utils.h"
+#include <Python.h>
%}
diff --git a/python/ctracecmdgui.i b/python/ctracecmdgui.i
index 1dcdab09..032f3ff8 100644
--- a/python/ctracecmdgui.i
+++ b/python/ctracecmdgui.i
@@ -7,6 +7,7 @@
#include <pygobject.h>
#include <pyglib.h>
#include <Python.h>
+#include <memoryobject.h>
extern GtkTreeModel *trace_view_store_as_gtk_tree_model(struct trace_view_store *store);