--- src/lftp_tinfo.cc.orig 2020-01-08 03:29:15.129200361 +0000 +++ src/lftp_tinfo.cc 2020-01-08 03:30:35.491691581 +0000 @@ -20,20 +20,20 @@ #include extern "C" { -#if defined(HAVE_CURSES_H) -# include -# if defined(HAVE_TERM_H) -# include -# elif defined(HAVE_NCURSES_TERM_H) -# include -# endif -#elif defined(HAVE_NCURSES_CURSES_H) +#if defined(HAVE_NCURSES_CURSES_H) # include # if defined(HAVE_NCURSES_TERM_H) # include # elif defined(HAVE_TERM_H) # include # endif +#elif defined(HAVE_CURSES_H) +# include +# if defined(HAVE_TERM_H) +# include +# elif defined(HAVE_NCURSES_TERM_H) +# include +# endif #elif defined(HAVE_TERMCAP_H) # include #else