summaryrefslogtreecommitdiffstats
path: root/comms/scmxx/files/patch-src_charsets_ucs4__dec.c
blob: 02e40fefdd9ae8e1f0c60c8247444c423397acb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

$FreeBSD$

--- src/charsets/ucs4_dec.c.orig	Thu Jul 22 18:16:40 2004
+++ src/charsets/ucs4_dec.c	Thu Jul 22 18:20:04 2004
@@ -19,6 +19,12 @@
 #include <errno.h>
 #include <iconv.h>
 
+#include <sys/param.h>
+#if __FreeBSD_version < 500000
+#include <limits.h>
+#define UINT16_MAX USHRT_MAX
+#endif
+
 #include <config.h>
 #ifndef ICONV_CAST
 #  define ICONV_CAST char**
OpenPOWER on IntegriCloud