From: Thomas Weißschuh Date: Tue, 19 Aug 2025 16:13:02 +0000 (+0200) Subject: lsclocks: stop using MAX_CLOCKS X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ab940b1b7743ae6bf032f37389f8c3390f048eb;p=thirdparty%2Futil-linux.git lsclocks: stop using MAX_CLOCKS 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 --- 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)