summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2025-03-10 16:45:31 -0300
committerNamhyung Kim <namhyung@kernel.org>2025-03-13 00:29:36 -0700
commit0c9f3a8597d2536cfd4709899f4b090bf54da4ca (patch)
tree127d8d0b1bf1c52eeff053a33aa68b1b3ce223b7
parentbbf006d6d199413f856db0aab36c7da1e2febe75 (diff)
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>
-rw-r--r--tools/lib/api/io_dir.h1
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__)