$OpenBSD: patch-src_charsets_ucs4_dec_c,v 1.1 2005/07/26 17:00:51 fgsch Exp $ --- src/charsets/ucs4_dec.c.orig Tue Jul 26 01:40:42 2005 +++ src/charsets/ucs4_dec.c Tue Jul 26 01:41:13 2005 @@ -26,6 +26,10 @@ #define MB_LEN_MAX 6 #endif +#ifndef UINT16_MAX +#define UINT16_MAX USHRT_MAX +#endif + static size_t replace_char_escape (char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)