3662
|
1 This file is part of MXE. |
|
2 See index.html for further information. |
|
3 |
|
4 diff -ur gdb-7.5.1_old/gdb/windows-termcap.c gdb-7.5.1/gdb/windows-termcap.c |
|
5 --- gdb-7.5.1_old/gdb/windows-termcap.c 2012-12-13 13:28:37.527194089 -0300 |
|
6 +++ gdb-7.5.1/gdb/windows-termcap.c 2012-12-13 13:29:54.823190855 -0300 |
|
7 @@ -18,7 +18,15 @@ |
|
8 |
|
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/>. */ |
|
11 +#include "config.h" |
|
12 |
|
13 +#if defined (HAVE_NCURSES_TERM_H) |
|
14 +#elif defined (HAVE_TERM_H) |
|
15 +#else |
|
16 +/* On MinGW, a real termcap library is usually not present. Stub versions |
|
17 + of the termcap functions will be built from windows-termcap.c. Readline |
|
18 + provides its own extern declarations when there's no termcap.h; do the |
|
19 + same here for the termcap functions used in GDB. */ |
|
20 #include <stdlib.h> |
|
21 |
|
22 /* -Wmissing-prototypes */ |
|
23 @@ -71,3 +79,4 @@ |
|
24 { |
|
25 return NULL; |
|
26 } |
|
27 +#endif |