summaryrefslogtreecommitdiff
path: root/gdb/gdb_curses.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-02-23 20:53:00 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-02-23 20:53:00 +0000
commita0f577daaaa4f22875bd4ea807fdeed9e380f9e0 (patch)
tree21651516b0d7130f7c03b083c0cdc073a35d46cf /gdb/gdb_curses.h
parenta739a1002040e87f16c67d4c0b126e0f96bd2169 (diff)
downloadgdb-a0f577daaaa4f22875bd4ea807fdeed9e380f9e0.tar.gz
* gdb_curses.h: Provide a fallback prototype for tgetnum.
Diffstat (limited to 'gdb/gdb_curses.h')
-rw-r--r--gdb/gdb_curses.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdb_curses.h b/gdb/gdb_curses.h
index f7854b07100..ac3cd3d1e39 100644
--- a/gdb/gdb_curses.h
+++ b/gdb/gdb_curses.h
@@ -1,6 +1,6 @@
/* Portable <curses.h>.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -36,6 +36,12 @@
#include <ncurses/term.h>
#elif defined (HAVE_TERM_H)
#include <term.h>
+#else
+/* On MinGW, a real termcap library is usually not present. Stub versions
+ of the termcap functions will be built from win32-termcap.c. Readline
+ provides its own extern declarations when there's no termcap.h; do the
+ same here for the termcap functions used in GDB. */
+extern int tgetnum (const char *);
#endif
#endif /* gdb_curses.h */