This is needed for basname(). Without the include the compiler may assume that basename() returns int, which leads to a segfault in some cases.
Signed-off-by: Seth Forshee <seth.fors...@canonical.com> --- kernel-shark.c | 1 + trace-graph-main.c | 1 + trace-view-main.c | 1 + 3 files changed, 3 insertions(+) diff --git a/kernel-shark.c b/kernel-shark.c index ee4796a..0201427 100644 --- a/kernel-shark.c +++ b/kernel-shark.c @@ -28,6 +28,7 @@ #include <gtk/gtk.h> #include <errno.h> #include <getopt.h> +#include <libgen.h> #include "trace-compat.h" #include "trace-capture.h" diff --git a/trace-graph-main.c b/trace-graph-main.c index 1bc10c1..3654295 100644 --- a/trace-graph-main.c +++ b/trace-graph-main.c @@ -23,6 +23,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> +#include <libgen.h> #include "trace-cmd.h" #include "trace-graph.h" diff --git a/trace-view-main.c b/trace-view-main.c index 73dfa8a..935b8c1 100644 --- a/trace-view-main.c +++ b/trace-view-main.c @@ -23,6 +23,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> +#include <libgen.h> #include "trace-cmd.h" #include "trace-view.h" -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/