That flavor of MinGW assumes Windows 9X as the default target,
which doesn't expose CONSOLE_FONT_INFO stuff in Windows header
files. Since we no longer support running on Windows older
than XP anyway, requiring it at build time makes sense.
gdb/ChangeLog
2019-05-03 Eli Zaretskii <eliz@gnu.org>
* windows-nat.c [_WIN32_WINNT]: Define _WIN32_WINNT to Windows XP
level, so that various Windows header files expose the necessary
declarations and definitions.
2019-05-03 Eli Zaretskii <eliz@gnu.org>
+ * windows-nat.c [_WIN32_WINNT]: Define _WIN32_WINNT to Windows XP
+ level, so that various Windows header files expose the necessary
+ declarations and definitions.
+
* symfile.c (find_separate_debug_file): Remove colon from the
drive spec of DOS/Windows file names of the target, so that the
file name produced from DEBUGDIR and the target's directory will
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
+/* We need at least the level of XP for CONSOLE_FONT_INFO. */
+#ifdef _WIN32_WINNT
+# if _WIN32_WINNT < 0x0501
+# undef _WIN32_WINNT
+# define _WIN32_WINNT 0x0501
+# endif
+#else
+# define _WIN32_WINNT 0x0501
+#endif
#include <windows.h>
#include <imagehlp.h>
#include <psapi.h>