aboutsummaryrefslogtreecommitdiff
path: root/readline/readline.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-11 08:29:01 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-11 08:29:01 +0000
commitbab58134b507e9eca3f8d88db45b36d47a4d3168 (patch)
treef95812efd2b441b3e47319f29ff7217943dc72d3 /readline/readline.c
parent73b8f10233f20bfb6274dc69b46bd540e4254d46 (diff)
downloadfsf-binutils-gdb-bab58134b507e9eca3f8d88db45b36d47a4d3168.zip
fsf-binutils-gdb-bab58134b507e9eca3f8d88db45b36d47a4d3168.tar.gz
fsf-binutils-gdb-bab58134b507e9eca3f8d88db45b36d47a4d3168.tar.bz2
#undef PC, which Solaris2 defines in sys/types.h, clobbering the
termcap global variable PC.
Diffstat (limited to 'readline/readline.c')
-rw-r--r--readline/readline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/readline/readline.c b/readline/readline.c
index de1142f..696abf6 100644
--- a/readline/readline.c
+++ b/readline/readline.c
@@ -1968,6 +1968,11 @@ static char *term_string_buffer = (char *)NULL;
/* Non-zero means this terminal can't really do anything. */
int dumb_term = 0;
+/* On Solaris2, sys/types.h brings in sys/reg.h,
+ which screws up the Termcap variable PC, used below. */
+
+#undef PC
+
char PC;
char *BC, *UP;