diff --git a/src/conio/GNUmakefile b/src/conio/GNUmakefile index 630685314677dbe9c268119366e78cf6a444855e..590d0553513c3f14960a924107b9fbb3326fa4bb 100644 --- a/src/conio/GNUmakefile +++ b/src/conio/GNUmakefile @@ -42,6 +42,10 @@ ifeq ($(os),netbsd) endif endif +ifeq ($(shell [ -e /usr/include/ncursesw/ncurses.h ] ; then echo YES ; fi),YES) + CFLAGS += -DDEBIAN_HATES_YOU +endif + ifdef NEED_BITMAP OBJS += $(MTOBJODIR)$(DIRSEP)bitmap_con$(OFILE) endif diff --git a/src/conio/curs_fix.h b/src/conio/curs_fix.h index e664f904df806370a9b11e95630480e50435af53..60ed80d13a80c54c369de38bd977e3a104524439 100644 --- a/src/conio/curs_fix.h +++ b/src/conio/curs_fix.h @@ -34,14 +34,16 @@ #define NCURSES_WIDECHAR 1 #ifdef XCURSES #include <xcurses.h> -#endif - -#ifdef N_CURSES_LIB - #include <ncurses.h> -#endif - -#if defined(CURSES_LIB) || (!defined(XCURSES)&&!defined(N_CURSES_LIB)) - #include <curses.h> +#else + #ifdef N_CURSES_LIB + #include <ncurses.h> + #else + #ifdef DEBIAN_HATES_YOU + #include <ncursesw/ncurses.h> + #else + #include <curses.h> + #endif + #endif #endif #ifndef ACS_SBSD