--- origsrc/libedit-20130712-3.1/src/chartype.h 2012-03-11 10:54:58.000000000 +0100 +++ src/libedit-20130712-3.1/src/chartype.h 2013-10-20 13:54:52.166608497 +0200 @@ -56,9 +56,11 @@ /* Oh for a with char32_t and __STDC_UTF_32__ in it... * ref: ISO/IEC DTR 19769 */ +#ifndef __CYGWIN__ #if WCHAR_MAX < INT32_MAX #warning Build environment does not support non-BMP characters #endif +#endif #ifndef HAVE_WCSDUP wchar_t *wcsdup(const wchar_t *s); --- origsrc/libedit-20130712-3.1/src/editline/readline.h 2013-06-01 17:46:07.000000000 +0200 +++ src/libedit-20130712-3.1/src/editline/readline.h 2013-10-20 13:54:52.202608341 +0200 @@ -75,7 +75,7 @@ typedef KEYMAP_ENTRY *Keymap; #ifndef CTRL #include -#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) +#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) && !defined(__CYGWIN__) #include #endif #ifndef CTRL --- origsrc/libedit-20130712-3.1/src/vi.c 2013-07-12 16:13:34.000000000 +0200 +++ src/libedit-20130712-3.1/src/vi.c 2013-10-20 13:54:52.234608202 +0200 @@ -918,6 +918,10 @@ vi_comment_out(EditLine *el, Int c __att * NB: posix implies that we should enter insert mode, however * this is against historical precedent... */ +#ifdef __CYGWIN__ +#undef __weak_reference +#endif + #ifdef __weak_reference __weakref_visible char *my_get_alias_text(const char *) __weak_reference(get_alias_text);