From 0c9f3a8597d2536cfd4709899f4b090bf54da4ca Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 10 Mar 2025 16:45:31 -0300 Subject: [PATCH] libapi: Add missing header with NAME_MAX define to io_dir.h Most systems get this indirectly, but some odd cases (some musl libc systems) can't find it, so just add the header where NAME_MAX is defined to avoid that. Fixes: d118b08f7eee6d6f ("tools lib api: Add io_dir an allocation free readdir alternative") Signed-off-by: Arnaldo Carvalho de Melo Link: https://lore.kernel.org/r/20250310194534.265487-2-acme@kernel.org Signed-off-by: Namhyung Kim --- tools/lib/api/io_dir.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/api/io_dir.h b/tools/lib/api/io_dir.h index aab73393d2a2..ef83e967e48c 100644 --- a/tools/lib/api/io_dir.h +++ b/tools/lib/api/io_dir.h @@ -11,6 +11,7 @@ #include #include #include +#include #if !defined(SYS_getdents64) #if defined(__x86_64__) || defined(__arm__) -- 2.50.1