aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/color.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-07-07 11:37:08 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-12 15:19:58 -0300
commit16b7c9bda52a593fb3a7e3a9848d7596777a73f5 (patch)
tree9e1c9477cd30a9ac6d32f51aedde69f2281c0c89 /tools/perf/util/color.c
parentperf tests x86 rdpmc: Add missing headers (diff)
downloadlinux-dev-16b7c9bda52a593fb3a7e3a9848d7596777a73f5.tar.xz
linux-dev-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/perf/util/color.c')
-rw-r--r--tools/perf/util/color.c1
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;