Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
tools/perf/util/data.h
··· 4 4 5 5 #include <stdio.h> 6 6 #include <stdbool.h> 7 + #include <unistd.h> 7 8 #include <linux/types.h> 8 9 9 10 enum perf_data_mode {