annotate 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
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
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 diff -ur gdb-7.5.1_old/gdb/windows-termcap.c gdb-7.5.1/gdb/windows-termcap.c
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 --- gdb-7.5.1_old/gdb/windows-termcap.c 2012-12-13 13:28:37.527194089 -0300
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 +++ gdb-7.5.1/gdb/windows-termcap.c 2012-12-13 13:29:54.823190855 -0300
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 @@ -18,7 +18,15 @@
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8
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/>. */
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 +#include "config.h"
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 +#if defined (HAVE_NCURSES_TERM_H)
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 +#elif defined (HAVE_TERM_H)
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 +#else
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 +/* 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
17 + 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
18 + 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
19 + same here for the termcap functions used in GDB. */
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 #include <stdlib.h>
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 /* -Wmissing-prototypes */
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 @@ -71,3 +79,4 @@
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 {
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 return NULL;
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 }
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 +#endif