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

From: Zhang, Rui
Date: Sun Jun 15 2025 - 21:32:13 EST


On Fri, 2025-06-13 at 20:45 +0300, Artem Bityutskiy wrote:
> 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>
>
May I know how to reproduce this?

-rui