From 6ab940b1b7743ae6bf032f37389f8c3390f048eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Tue, 19 Aug 2025 18:13:02 +0200 Subject: [PATCH] lsclocks: stop using MAX_CLOCKS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit MAX_CLOCKS is only available in the kernel UAPI headers and not libc headers. Switch back to a hardcoded value. This value is a stable ABI anyways and matches the other fallback definitions. Fixes: d3c49ee062f7 ("lsclocks: use MAX_CLOCKS, improve indention") Signed-off-by: Thomas Weißschuh --- misc-utils/lsclocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsclocks.c b/misc-utils/lsclocks.c index 8c6118162..aeecddec9 100644 --- a/misc-utils/lsclocks.c +++ b/misc-utils/lsclocks.c @@ -84,7 +84,7 @@ static inline clockid_t FD_TO_CLOCKID(int fd) #endif #ifndef CLOCK_AUX -# define CLOCK_AUX MAX_CLOCKS +# define CLOCK_AUX 16 #endif #define CLOCK_AUX0 (CLOCK_AUX + 0) -- 2.47.3