Re: [PATCH] tools/power turbostat: Fix build with musl

From: Artem Bityutskiy
Date: Fri Jun 13 2025 - 13:46:14 EST


On Fri, 2025-06-13 at 09:54 -0700, Calvin Owens wrote:
> 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 <calvin@xxxxxxxxxx>
Reviewed-by: Artem Bityutskiy <artem.bityutskiy@xxxxxxxxxxxxxxx>