From: Xi Ruoyao Date: Sat, 20 Jun 2026 18:02:41 +0000 (+0800) Subject: fincore: include sys/syscall.h if available X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4af4cccd26b6eaa291c10b1bee7eaf11eb5a6a5e;p=thirdparty%2Futil-linux.git fincore: include sys/syscall.h if available Without sys/syscall.h, we fall back to the hand-brew logic for SYS_cachestat. The hand-brew code has a special case for Alpha, but there are more cases where cachestat has a different syscall number, for example MIPS. Signed-off-by: Xi Ruoyao --- diff --git a/misc-utils/fincore.c b/misc-utils/fincore.c index 366aa6f3c..5603de59b 100644 --- a/misc-utils/fincore.c +++ b/misc-utils/fincore.c @@ -20,6 +20,9 @@ #include #include +#ifdef HAVE_SYS_SYSCALL_H +#include +#endif #include #include #include