Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <acme@redhat.com>
Link: https://lore.kernel.org/r/20250310194534.265487-2-acme@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Arnaldo Carvalho de Melo and committed by
Namhyung Kim
0c9f3a85 bbf006d6

+1
+1
tools/lib/api/io_dir.h
··· 11 11 #include <unistd.h> 12 12 #include <sys/stat.h> 13 13 #include <sys/syscall.h> 14 + #include <linux/limits.h> 14 15 15 16 #if !defined(SYS_getdents64) 16 17 #if defined(__x86_64__) || defined(__arm__)