Mercurial > mxe-octave
comparison src/gdb-1-fix-termcap.patch @ 3662:2313df3c9689
update gdb package
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Jul 2014 15:57:24 -0400 |
parents | |
children | 5a00da34fd24 |
comparison
equal
deleted
inserted
replaced
3661:ecc8ad4c560c | 3662:2313df3c9689 |
---|---|
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 |