$NetBSD: patch-src_gui_curses_gui-curses-term_c,v 1.5 2015/08/01 19:10:15 tonio Exp $ Include , not . Check for HAVE_NCURSES_TERM_H, not for HAVE_NCURSES_CURSES_H. Workaround for build failure on early NetBSD 6.99.* and prerelease 6.0 (PR 46492) --- src/gui/curses/gui-curses-term.c.orig 2015-05-10 07:24:50.000000000 +0000 +++ src/gui/curses/gui-curses-term.c @@ -23,15 +23,15 @@ #include "config.h" #endif -#ifdef HAVE_NCURSESW_CURSES_H -#ifdef __sun +#ifdef HAVE_NCURSES_TERM_H #include #else -#include -#endif /* __sun */ -#else +#ifdef __NetBSD__ +/* workaround for build failure on early 6.99.* and prerelease 6.0 */ +#include +#endif #include -#endif /* HAVE_NCURSESW_CURSES_H */ +#endif /* HAVE_NCURSESW_TERM_H */ /* @@ -45,7 +45,7 @@ void gui_term_set_eat_newline_glitch (int value) { -#ifdef HAVE_EAT_NEWLINE_GLITCH +#if defined(HAVE_EAT_NEWLINE_GLITCH) && !defined(__NetBSD__) eat_newline_glitch = value; #else /* make C compiler happy */