summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-07-25 18:09:08 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-07-25 18:10:43 -0300
commitade535395088aa01a0f1f53ff95da04126eef3f3 (patch)
tree971cb701623401cac4b18424d8630c48b3f66493
parent1ab55323c5ef379e96ff6b225cd95e80fef4939a (diff)
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>
-rw-r--r--tools/perf/util/data.h1
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 {