[PATCH i-g-t v1 1/3] lib/igt_sriov_device: fix musl libc build

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Mon Mar 18 10:59:44 UTC 2024


For series

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>

On 15.3.2024 15.18, Kamil Konieczny wrote:
> On musl build the PATH_MAX define is missing, fixed this with
> including limits.h
> 
> Link: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138
> Cc: Bernd Kuhls <bernd at kuhls.net>
> Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> ---
>   lib/igt_sriov_device.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/lib/igt_sriov_device.c b/lib/igt_sriov_device.c
> index f425a5ecf..a0ef05d5c 100644
> --- a/lib/igt_sriov_device.c
> +++ b/lib/igt_sriov_device.c
> @@ -5,6 +5,7 @@
>   
>   #include <dirent.h>
>   #include <errno.h>
> +#include <limits.h>
>   #include <pciaccess.h>
>   
>   #include "drmtest.h"



More information about the igt-dev mailing list