3662
|
1 This file is part of MXE. |
|
2 See index.html for further information. |
|
3 |
3819
|
4 diff --git a/gdb/windows-termcap.c b/gdb/windows-termcap.c |
|
5 index caafc47..809ae6d 100644 |
|
6 --- a/gdb/windows-termcap.c |
|
7 +++ b/gdb/windows-termcap.c |
|
8 @@ -19,9 +19,16 @@ |
3662
|
9 You should have received a copy of the GNU General Public License |
|
10 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
3819
|
11 |
|
12 - |
|
13 #include "defs.h" |
|
14 - |
3662
|
15 +#include "config.h" |
3819
|
16 + |
3662
|
17 +#if defined (HAVE_NCURSES_TERM_H) |
|
18 +#elif defined (HAVE_TERM_H) |
|
19 +#else |
|
20 +/* On MinGW, a real termcap library is usually not present. Stub versions |
|
21 + of the termcap functions will be built from windows-termcap.c. Readline |
|
22 + provides its own extern declarations when there's no termcap.h; do the |
|
23 + same here for the termcap functions used in GDB. */ |
|
24 #include <stdlib.h> |
|
25 |
|
26 /* -Wmissing-prototypes */ |
3819
|
27 @@ -74,3 +81,4 @@ tgoto (const char *cap, int col, int row) |
3662
|
28 { |
|
29 return NULL; |
|
30 } |
|
31 +#endif |