Since a recent commit, I run into:
....
gdb/ui-style.c: In lambda function:
gdb/ui-style.c:597:20: error: ‘gdb_get_ncolors’ was not declared in this scope
597 | int colors = gdb_get_ncolors ();
| ^~~~~~~~~~~~~~~
make: *** [Makefile:2096: ui-style.o] Error 1
....
Fix this by adding the missing declaration.
/* Cast C to RESULT and return true if it's value is valid; false otherwise. */
extern bool color_space_safe_cast (color_space *result, long c);
+/* Get the number of colors supported by the terminal where GDB is running. */
+extern int gdb_get_ncolors ();
+
/* Styles that can be applied to a ui_file. */
struct ui_file_style
{