From e0e4470aa53c0022418290fb551c21da4bd50209 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 26 Oct 2026 10:45:31 -0700 Subject: [PATCH] perf print_insn: Include sys/types.h for ssize_t print_insn.h declares fprintf_insn_asm() with an ssize_t return type but does not include the header defining that type. This causes builds where stdio.h does not provide ssize_t to fail when compiling util/print_insn.c: util/print_insn.h:21:1: error: unknown type name 'ssize_t' Include sys/types.h so the header provides its own dependency for ssize_t. Fixes: 218c200f677d8af4 ("perf script: Consolidate capstone print functions") Reviewed-by: James Clark Signed-off-by: Florian Fainelli Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Ian Rogers Cc: Ingo Molnar Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/print_insn.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/print_insn.h b/tools/perf/util/print_insn.h index cefa5c5f246e..3de9438af9cd 100644 --- a/tools/perf/util/print_insn.h +++ b/tools/perf/util/print_insn.h @@ -4,6 +4,7 @@ #include #include +#include #include