diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-07-25 18:09:08 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-07-25 18:10:43 -0300 |
commit | ade535395088aa01a0f1f53ff95da04126eef3f3 (patch) | |
tree | 971cb701623401cac4b18424d8630c48b3f66493 /tools | |
parent | 1ab55323c5ef379e96ff6b225cd95e80fef4939a (diff) | |
download | lwn-ade535395088aa01a0f1f53ff95da04126eef3f3.tar.gz lwn-ade535395088aa01a0f1f53ff95da04126eef3f3.zip |
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 <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/data.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/data.h b/tools/perf/util/data.h index 173132d502f5..effcc195d7e9 100644 --- a/tools/perf/util/data.h +++ b/tools/perf/util/data.h @@ -4,6 +4,7 @@ #include <stdio.h> #include <stdbool.h> +#include <unistd.h> #include <linux/types.h> enum perf_data_mode { |