From: Arnaldo Carvalho de Melo Date: Mon, 25 Jul 2022 21:09:08 +0000 (-0300) Subject: perf data: Add missing unistd.h header needed for pid_t X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ade535395088aa01a0f1f53ff95da04126eef3f3;p=linux.git perf data: Add missing unistd.h header needed for pid_t Noticed when processing 'perf kwork' that includes util/data.h without, by luck, having included unistd.h indirectly to get the pid_t typedef. Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/data.h b/tools/perf/util/data.h index 173132d502f57..effcc195d7e9c 100644 --- a/tools/perf/util/data.h +++ b/tools/perf/util/data.h @@ -4,6 +4,7 @@ #include #include +#include #include enum perf_data_mode {