diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-07 16:37:08 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-12 20:19:58 +0200 |
commit | 16b7c9bda52a593fb3a7e3a9848d7596777a73f5 (patch) | |
tree | 9e1c9477cd30a9ac6d32f51aedde69f2281c0c89 /tools | |
parent | perf tests x86 rdpmc: Add missing headers (diff) | |
download | linux-16b7c9bda52a593fb3a7e3a9848d7596777a73f5.tar.xz linux-16b7c9bda52a593fb3a7e3a9848d7596777a73f5.zip |
perf tools: Add missing header to color.c
It uses isatty(), so needs unistd.h, include it.
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-ivwuz8f68tb3sdcpguo9wmvx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/color.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/color.c b/tools/perf/util/color.c index 1210ba555d07..47a34b561f5d 100644 --- a/tools/perf/util/color.c +++ b/tools/perf/util/color.c @@ -3,6 +3,7 @@ #include "config.h" #include "color.h" #include <math.h> +#include <unistd.h> int perf_use_color_default = -1; |