[PATCH i-g-t] lib/igt_profiling: add include for PATH_MAX constant

Adrián Larumbe adrian.larumbe at collabora.com
Tue Nov 5 15:11:15 UTC 2024


On 05.11.2024 09:31, Petr Vaněk wrote:
> 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>

Reviewed-by: Adrian Larumbe <adrian.larumbe at collabora.com>

> ---
> Resending the patch as it seems it did not make it to the list last
> time.
> 
>  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