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 <acme@redhat.com>
Link: https://lore.kernel.org/r/20250310194534.265487-2-acme@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/syscall.h>
+#include <linux/limits.h>
#if !defined(SYS_getdents64)
#if defined(__x86_64__) || defined(__arm__)