]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-ncurses.patch
- Release: 1 (no comment/changelog entry seems to justify release<1)
[packages/gdb.git] / gdb-ncurses.patch
CommitLineData
24a6bbe5
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 @@
c36c5481 5 /* Define if you have the <ncurses.h> header file. */
6 #undef HAVE_NCURSES_H
1013231d 7
c36c5481 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
1013231d 13
24a6bbe5
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)
1013231d 23
24a6bbe5
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
c36c5481 29@@ -24,6 +24,8 @@
1013231d 30
c36c5481 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
24a6bbe5
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 */
1013231d
AM
44
45-#ifdef HAVE_CURSES_H
c36c5481 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>
1013231d 52 #endif
c36c5481 53+
1013231d
AM
54 #ifdef HAVE_TERM_H
55 #include <term.h>
56 #endif
This page took 0.535462 seconds and 4 git commands to generate.