diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-07 11:37:08 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-12 15:19:58 -0300 |
commit | 16b7c9bda52a593fb3a7e3a9848d7596777a73f5 (patch) | |
tree | 9e1c9477cd30a9ac6d32f51aedde69f2281c0c89 | |
parent | 10ca87fde70d9e7b25e576c491823915c80fa9f6 (diff) | |
download | linux-stable-16b7c9bda52a593fb3a7e3a9848d7596777a73f5.tar.gz linux-stable-16b7c9bda52a593fb3a7e3a9848d7596777a73f5.tar.bz2 linux-stable-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>
-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; |