diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2019-07-25 10:41:37 -0700 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-25 15:43:32 -0400 |
commit | dbee104a34030b874330983b8415ce2fadc9ada6 (patch) | |
tree | 8dfcfc6b4772b184d9968491cee0110c10a2338a | |
parent | 7ba5e123f93e120ffd365cd5eab7553c82e513aa (diff) | |
download | trace-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.i | 1 | ||||
-rw-r--r-- | python/ctracecmdgui.i | 1 |
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); |