Skip to content

Commit 6ea0ec1

Browse files
jcalvinowenslenb
authored andcommitted
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 <[email protected]> Reviewed-by: Artem Bityutskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent d44c40e commit 6ea0ec1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
#include <stdbool.h>
6868
#include <assert.h>
6969
#include <linux/kernel.h>
70+
#include <limits.h>
7071

7172
#define UNUSED(x) (void)(x)
7273

0 commit comments

Comments
 (0)