From: Arnaldo Carvalho de Melo Date: Mon, 10 Mar 2025 19:45:31 +0000 (-0300) Subject: libapi: Add missing header with NAME_MAX define to io_dir.h X-Git-Tag: block-6.15-20250403~13^2~55 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0c9f3a8597d2536cfd4709899f4b090bf54da4ca;p=linux-block.git 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 --- 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__)