diff options
Diffstat (limited to 'mail/cone/patches/patch-ac')
-rw-r--r-- | mail/cone/patches/patch-ac | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/cone/patches/patch-ac b/mail/cone/patches/patch-ac new file mode 100644 index 00000000000..2e4a5fb243e --- /dev/null +++ b/mail/cone/patches/patch-ac @@ -0,0 +1,36 @@ +$NetBSD: patch-ac,v 1.1.1.1 2007/11/13 18:02:15 jlam Exp $ + +--- curses/curses.C.orig Sat Mar 27 16:05:46 2004 ++++ curses/curses.C +@@ -422,6 +422,16 @@ bool Curses::processKeyInFocus(const Key + return false; + } + ++#if !HAVE_MBRTOWC ++static size_t mbrtowc(wchar_t *pw, const char *s, size_t n, mbstate_t *ps) ++{ ++ if (s == NULL) return 0; ++ if (n == 0) return (size_t)-1; ++ if (pw) *pw = (wchar_t) *s; ++ return (*s != '\0'); ++} ++#endif ++ + void Curses::mbtow(const char *text, vector<wchar_t> &wbuf) + { + mbstate_t ps, ps_save; +@@ -471,6 +481,14 @@ void Curses::mbtow(const char *text, vec + } + } + ++#if !HAVE_WCRTOMB ++static size_t wcrtomb(char *s, wchar_t w, mbstate_t *ps) ++{ ++ if (s == NULL) return 0; ++ *s = (char) w; ++ return 1; ++} ++#endif + + string Curses::wtomb(const wchar_t *w) + { |