From 380dc99297cc8b57d09ae6b2fb236e7323452cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Fri, 1 May 2026 13:48:39 +0100 Subject: [PATCH] build: fix compilation error on Alpine Linux and OpenBSD * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl/lib/mbbuf.h b/gl/lib/mbbuf.h index 63557fdce..a6289a8ce 100644 --- a/gl/lib/mbbuf.h +++ b/gl/lib/mbbuf.h @@ -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);