]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf auxtrace: Include sys/types.h for pid_t
authorArnaldo Carvalho de Melo <acme@kernel.org>
Wed, 3 Dec 2025 14:50:03 +0000 (11:50 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 19:01:05 +0000 (11:01 -0800)
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>
tools/perf/util/auxtrace.h

index eee2c11f766683488af09a8c1de2401cb28adc09..6947f3f284c029286837e4e1dd9f535a5f0b6334 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __PERF_AUXTRACE_H
 #define __PERF_AUXTRACE_H
 
+#include <sys/types.h>
 #include <stdio.h> // FILE
 #include <linux/perf_event.h>
 #include <linux/types.h>