diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-18 16:08:10 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 18:01:53 +0200 |
commit | b0742e90f5ab904aa835350c28bcec48e9109379 (patch) | |
tree | 32aac13c7004239579aea973b88d98a3e7e95cae /tools/perf/util/term.c | |
parent | perf str{filter,list}: Disentangle headers (diff) | |
download | linux-b0742e90f5ab904aa835350c28bcec48e9109379.tar.xz linux-b0742e90f5ab904aa835350c28bcec48e9109379.zip |
perf tools: Don't include terminal handling headers in util.h
Continuing the disentanglement, mostly the TUI needs CTRL(c), that is
in sys/ttydefaults.h and term.c needs the termios headers.
And term.h needs to be added to a few places too.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-il19zna7qj9ytavdbwlipc7t@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/term.c')
-rw-r--r-- | tools/perf/util/term.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/util/term.c b/tools/perf/util/term.c index 90b47d8aa19c..8f254a74d97d 100644 --- a/tools/perf/util/term.c +++ b/tools/perf/util/term.c @@ -1,4 +1,8 @@ -#include "util.h" +#include "term.h" +#include <stdlib.h> +#include <termios.h> +#include <unistd.h> +#include <sys/ioctl.h> void get_term_dimensions(struct winsize *ws) { |