]> git.pld-linux.org Git - packages/crossavr-gdb.git/blame - gdb-ncurses.patch
- updated
[packages/crossavr-gdb.git] / gdb-ncurses.patch
CommitLineData
e10d28b4
AM
1diff -urN gdb-6.0.org/gdb/config.in gdb-6.0/gdb/config.in
2--- gdb-6.0.org/gdb/config.in 2003-10-09 19:42:39.000000000 +0200
3+++ gdb-6.0/gdb/config.in 2003-10-09 19:44:01.000000000 +0200
4@@ -290,6 +290,9 @@
aa5e7b70 5 /* Define if you have the <ncurses.h> header file. */
6 #undef HAVE_NCURSES_H
de7d4c89 7
aa5e7b70 8+/* Define if you have the <ncurses/ncurses.h> header file. */
9+#undef HAVE_NCURSES_NCURSES_H
10+
11 /* Define if you have the <ndir.h> header file. */
12 #undef HAVE_NDIR_H
de7d4c89 13
e10d28b4
AM
14diff -urN gdb-6.0.org/gdb/configure.in gdb-6.0/gdb/configure.in
15--- gdb-6.0.org/gdb/configure.in 2003-10-09 19:42:39.000000000 +0200
16+++ gdb-6.0/gdb/configure.in 2003-10-09 19:44:27.000000000 +0200
17@@ -351,7 +351,7 @@
18 Solaris 2.[78] when using GCC. ]])
19 fi ;;
20 esac
21-AC_CHECK_HEADERS(curses.h ncurses.h term.h)
22+AC_CHECK_HEADERS(curses.h ncurses.h ncurses/ncurses.h term.h)
de7d4c89 23
e10d28b4
AM
24 # FIXME: kettenis/20030102: In most cases we include these
25 # unconditionally, so what's the point in checking these?
26diff -urN gdb-6.0.org/gdb/tui/tuiData.h gdb-6.0/gdb/tui/tuiData.h
27--- gdb-6.0.org/gdb/tui/tuiData.h 2003-10-09 19:42:43.000000000 +0200
28+++ gdb-6.0/gdb/tui/tuiData.h 2003-10-09 19:44:01.000000000 +0200
aa5e7b70 29@@ -24,6 +24,8 @@
de7d4c89 30
aa5e7b70 31 #if defined (HAVE_NCURSES_H)
32 #include <ncurses.h>
33+#elif defined (HAVE_NCURSES_NCURSES_H)
34+#include <ncurses/ncurses.h>
35 #elif defined (HAVE_CURSES_H)
36 #include <curses.h>
37 #endif
e10d28b4
AM
38diff -urN gdb-6.0.org/gdb/utils.c gdb-6.0/gdb/utils.c
39--- gdb-6.0.org/gdb/utils.c 2003-10-09 19:42:40.000000000 +0200
40+++ gdb-6.0/gdb/utils.c 2003-10-09 19:44:01.000000000 +0200
41@@ -52,9 +52,14 @@
42
43 #include <sys/param.h> /* For MAXPATHLEN */
de7d4c89
AM
44
45-#ifdef HAVE_CURSES_H
aa5e7b70 46+#if defined (HAVE_NCURSES_H)
47+#include <ncurses.h>
48+#elif defined (HAVE_NCURSES_NCURSES_H)
49+#include <ncurses/ncurses.h>
50+#elif defined (HAVE_CURSES_H)
51 #include <curses.h>
de7d4c89 52 #endif
aa5e7b70 53+
de7d4c89
AM
54 #ifdef HAVE_TERM_H
55 #include <term.h>
56 #endif
This page took 0.083168 seconds and 4 git commands to generate.