annotate src/gdb-1-fix-termcap.patch @ 4043:b54e00ea56bc

of-fl-core: readd fl-core patch in dos mode * src/of-fl-core-1-fixes.patch: readd patch
author John Donoghue
date Fri, 02 Oct 2015 10:24:38 -0400
parents 5a00da34fd24
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3662
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 This file is part of MXE.
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 See index.html for further information.
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
3819
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
4 diff --git a/gdb/windows-termcap.c b/gdb/windows-termcap.c
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
5 index caafc47..809ae6d 100644
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
6 --- a/gdb/windows-termcap.c
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
7 +++ b/gdb/windows-termcap.c
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
8 @@ -19,9 +19,16 @@
3662
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 You should have received a copy of the GNU General Public License
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 along with this program. If not, see <http://www.gnu.org/licenses/>. */
3819
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
11
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
12 -
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
13 #include "defs.h"
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
14 -
3662
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 +#include "config.h"
3819
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
16 +
3662
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 +#if defined (HAVE_NCURSES_TERM_H)
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 +#elif defined (HAVE_TERM_H)
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 +#else
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 +/* On MinGW, a real termcap library is usually not present. Stub versions
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 + of the termcap functions will be built from windows-termcap.c. Readline
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 + provides its own extern declarations when there's no termcap.h; do the
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 + same here for the termcap functions used in GDB. */
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 #include <stdlib.h>
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 /* -Wmissing-prototypes */
3819
5a00da34fd24 gdb: update version 7.9
John Donoghue
parents: 3662
diff changeset
27 @@ -74,3 +81,4 @@ tgoto (const char *cap, int col, int row)
3662
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 {
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 return NULL;
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 }
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 +#endif