--- ./mdport.c 2016-07-23 11:24:54.000000000 +0900 +++ ./mdport.c 2021-04-10 21:46:28.000004331 +0900 @@ -84,6 +84,7 @@ #include /* AIX requires curses.h be included before term.h */ #if defined(HAVE_TERM_H) +#define NCURSES_INTERNALS #include #elif defined(HAVE_NCURSES_TERM_H) #include