OSDN Git Service

perf data: Add missing unistd.h header needed for pid_t
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Jul 2022 21:09:08 +0000 (18:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Jul 2022 21:10:43 +0000 (18:10 -0300)
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>
tools/perf/util/data.h

index 173132d..effcc19 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <stdio.h>
 #include <stdbool.h>
+#include <unistd.h>
 #include <linux/types.h>
 
 enum perf_data_mode {