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

perf auxtrace: Include sys/types.h for pid_t

In 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option")
sys/types.h was removed, which broke the build in all Alpine Linux
releases, as musl libc has pid_t defined via sys/types.h, add it back.

Fixes: 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Arnaldo Carvalho de Melo and committed by
Namhyung Kim
e28f834f 34e271ae

+1
+1
tools/perf/util/auxtrace.h
··· 7 7 #ifndef __PERF_AUXTRACE_H 8 8 #define __PERF_AUXTRACE_H 9 9 10 + #include <sys/types.h> 10 11 #include <stdio.h> // FILE 11 12 #include <linux/perf_event.h> 12 13 #include <linux/types.h>