From a038713dd19b5f0c98fd431c43008a909090b939 Mon Sep 17 00:00:00 2001 From: David Arcari Date: Tue, 26 Aug 2025 14:32:50 -0400 Subject: [PATCH] tools/power turbostat: Fix build with musl JIRA: https://issues.redhat.com/browse/RHEL-110614 commit 6ea0ec1b958a84aff9f03fb0ae4613a4d5bed3ea Author: Calvin Owens Date: Fri Jun 13 09:54:23 2025 -0700 tools/power turbostat: Fix build with musl turbostat.c: In function 'parse_int_file': turbostat.c:5567:19: error: 'PATH_MAX' undeclared (first use in this function) 5567 | char path[PATH_MAX]; | ^~~~~~~~ turbostat.c: In function 'probe_graphics': turbostat.c:6787:19: error: 'PATH_MAX' undeclared (first use in this function) 6787 | char path[PATH_MAX]; | ^~~~~~~~ Signed-off-by: Calvin Owens Reviewed-by: Artem Bityutskiy Signed-off-by: Len Brown Signed-off-by: David Arcari --- tools/power/x86/turbostat/turbostat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 422a2cca2db7..1911d1e4f42f 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -67,6 +67,7 @@ #include #include #include +#include #define UNUSED(x) (void)(x)