From a0ce085c261a1d981bfa0acd4272b6ba77bfa3be Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Wed, 25 Dec 2024 16:21:13 +0100
Subject: [PATCH] fincore: Use correct syscall number for cachestat on alpha

Fixes #3331, #3333

Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
---
 misc-utils/fincore.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/misc-utils/fincore.c b/misc-utils/fincore.c
index 513b81114..25ce5aa1e 100644
--- a/misc-utils/fincore.c
+++ b/misc-utils/fincore.c
@@ -46,8 +46,12 @@
 #ifndef HAVE_CACHESTAT
 
 #ifndef SYS_cachestat
+#if defined (__alpha__)
+#define SYS_cachestat 561
+#else
 #define SYS_cachestat 451
 #endif
+#endif
 
 struct cachestat_range {
 	uint64_t off;
-- 
2.39.5

