$NetBSD: patch-src_gui_curses_gui-curses-term_c,v 1.4 2014/08/24 12:45:35 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 2014-08-15 08:09:01.000000000 +0000 +++ src/gui/curses/gui-curses-term.c @@ -23,13 +23,13 @@ #include "config.h" #endif -#ifdef HAVE_NCURSESW_CURSES_H -#ifdef __sun +#ifdef HAVE_NCURSES_TERM_H #include #else -#include +#ifdef __NetBSD__ +/* workaround for build failure on early 6.99.* and prerelease 6.0 */ +#include #endif -#else #include #endif @@ -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 */