--- gdb/configure.ac~0 2014-10-29 21:45:50 +0200
+++ gdb/configure.ac 2014-12-30 07:42:27 +0200
@@ -627,9 +627,10 @@
ac_cv_search_tgetent="none required"
;;
*mingw32*)
- ac_cv_search_tgetent="none required"
- CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
- ;;
+ if test x"$prefer_curses" = xyes; then
+ ac_cv_search_tgetent="none required"
+ CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
+ fi ;;
esac
# These are the libraries checked by Readline.
--- gdb/windows-termcap.c~0 2014-06-11 18:34:41 +0300
+++ gdb/windows-termcap.c 2014-12-29 15:42:44 +0200
@@ -19,6 +19,11 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
+
+#include "config.h"
+
+#if !defined HAVE_CURSES_H && !defined HAVE_NCURSES_H && !defined HAVE_NCURSES_NCURSES_H
+
#include
/* -Wmissing-prototypes */
@@ -71,3 +76,5 @@
{
return NULL;
}
+
+#endif /* !HAVE_CURSES_H && !HAVE_NCURSES_H && !HAVE_NCURSES_NCURSES_H */