diff options
Diffstat (limited to 'mail/cone/patches/patch-ae')
-rw-r--r-- | mail/cone/patches/patch-ae | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/cone/patches/patch-ae b/mail/cone/patches/patch-ae new file mode 100644 index 00000000000..679fb97e1fd --- /dev/null +++ b/mail/cone/patches/patch-ae @@ -0,0 +1,21 @@ +$NetBSD: patch-ae,v 1.1.1.1 2007/11/13 18:02:15 jlam Exp $ + +--- curses/cursesscreen.C.orig Mon Jul 30 02:47:52 2007 ++++ curses/cursesscreen.C +@@ -533,6 +533,16 @@ int Curses::runCommand(vector<const char + return WIFEXITED(waitstat) ? WEXITSTATUS(waitstat):-1; + } + ++#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 ++ + Curses::Key CursesScreen::doGetKey() + { + // Position cursor first. |