diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2025-03-10 19:45:31 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-03-13 07:29:36 +0000 |
| commit | 0c9f3a8597d2536cfd4709899f4b090bf54da4ca (patch) | |
| tree | 127d8d0b1bf1c52eeff053a33aa68b1b3ce223b7 /tools/lib/api/io_dir.h | |
| parent | perf annotate: Add --code-with-type option. (diff) | |
| download | kernel-0c9f3a8597d2536cfd4709899f4b090bf54da4ca.tar.gz kernel-0c9f3a8597d2536cfd4709899f4b090bf54da4ca.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/lib/api/io_dir.h')
| -rw-r--r-- | tools/lib/api/io_dir.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <unistd.h> #include <sys/stat.h> #include <sys/syscall.h> +#include <linux/limits.h> #if !defined(SYS_getdents64) #if defined(__x86_64__) || defined(__arm__) |
