perf auxtrace: Include sys/types.h for pid_t
Arnaldo Carvalho de Melo
maintainerPATCH 1/1 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")
Cc Adrian Hunter <[email protected]>
Cc Ian Rogers <[email protected]>
Cc James Clark <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/auxtrace.h | 1 + 1 file changed, 1 insertion(+)
tools/perf/util/auxtrace.h +1 -0
@@ -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>
Signature · 1 line
2.52.0
Quoted 5 lines · Arnaldo Carvalho de Melo
In
754187ad73b73bcb("perf build: RemoveNO_AUXTRACEbuild option")sys/types.hwas removed, which broke the build in all Alpine Linux releases, as musl libc haspid_tdefined viasys/types.h, add it back.
Quoted 7 lines
Fixes 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option")Cc Adrian Hunter <[email protected]>Cc Ian Rogers <[email protected]>Cc James Clark <[email protected]>Cc Jiri Olsa <[email protected]>Cc Namhyung Kim <[email protected]>Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
Reviewed-by Ian Rogers <[email protected]>
Thanks,
Ian
Quoted 19 lines
--- tools/perf/util/auxtrace.h | 1 + 1 file changed, 1 insertion(+)tools/perf/util/auxtrace.h +1
-1@@ -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> --2.52.0
Quoted 5 lines · Arnaldo Carvalho de Melo
In
754187ad73b73bcb("perf build: RemoveNO_AUXTRACEbuild option")sys/types.hwas removed, which broke the build in all Alpine Linux releases, as musl libc haspid_tdefined viasys/types.h, add it back.
Applied to perf-tools-next, thanks!
Best regards,
Namhyung