]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix compilation error on Alpine Linux and OpenBSD
authorPádraig Brady <P@draigBrady.com>
Fri, 1 May 2026 12:48:39 +0000 (13:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 1 May 2026 12:50:36 +0000 (13:50 +0100)
* gl/lib/mbbuf.h: Define MBBUF_EOF in terms of MCEL_CHAR_MAX,
rather than depending on the stdint module.
Reported by Bruno Haible.

gl/lib/mbbuf.h

index 63557fdcedfc3dbebff6426229735623d1bb9bae..a6289a8ceb3bb9506522a6226728262912c3c25f 100644 (file)
@@ -38,7 +38,7 @@ _GL_INLINE_HEADER_BEGIN
 #endif
 
 /* End of file.  */
-#define MBBUF_EOF UINT32_MAX
+#define MBBUF_EOF (MCEL_CHAR_MAX+1)
 
 /* MBBUF_EOF should not be a valid character.  */
 static_assert (MCEL_CHAR_MAX < MBBUF_EOF);