[PATCH i-g-t] lib/igt_profiling: add include for PATH_MAX constant
Petr Vaněk
arkamar at atlas.cz
Sun Nov 3 17:18:06 UTC 2024
PATH_MAX constant is defined in limits.h header file. It needs to be
explicitly included in musl environment as it is not transitively
available for any of available includes.
Fixes: 9366bee04d16 ("lib: Add DRM driver sysfs profiling knob toggling functions")
Cc: Adrián Larumbe <adrian.larumbe at collabora.com>
Signed-off-by: Petr Vaněk <arkamar at atlas.cz>
---
lib/igt_profiling.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/igt_profiling.c b/lib/igt_profiling.c
index b61506742..e1526ad98 100644
--- a/lib/igt_profiling.c
+++ b/lib/igt_profiling.c
@@ -10,6 +10,7 @@
#include <assert.h>
#include <dirent.h>
#include <fcntl.h>
+#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
--
2.45.2
More information about the igt-dev
mailing list