summaryrefslogtreecommitdiff
path: root/comms/scmxx/files
diff options
context:
space:
mode:
Diffstat (limited to 'comms/scmxx/files')
-rw-r--r--comms/scmxx/files/patch-src-unicode.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/comms/scmxx/files/patch-src-unicode.c b/comms/scmxx/files/patch-src-unicode.c
new file mode 100644
index 000000000000..b87d48f9e0d5
--- /dev/null
+++ b/comms/scmxx/files/patch-src-unicode.c
@@ -0,0 +1,15 @@
+--- src/unicode.c.orig Wed Feb 25 16:44:19 2004
++++ src/unicode.c Wed Apr 21 00:00:39 2004
+@@ -36,6 +36,12 @@
+ # define INTERNAL_CHARSET "UCS-4LE"
+ #endif
+
++#include <sys/param.h>
++#if __FreeBSD_version < 500000
++#include <limits.h>
++#define UINT16_MAX USHRT_MAX
++#endif
++
+ ucs4char_t* convert_to_internal (char* from_code,
+ char* input,
+ size_t insize)