forked from pikhq/sabotage
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libedit: fix a compatibility issue that appeared in gdb 7.6
gdb76 has a patch for it, but this change will increase compatibility with other readline users as well.
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
78,80c78 | ||
< #if !defined(__sun) && !defined(__hpux) && !defined(_AIX) | ||
< #include <sys/ttydefaults.h> | ||
< #endif | ||
--- | ||
> /* sys/ttydefaults.h commented out in musl version */ | ||
--- libedit-20121213-3.0/src/editline/readline.h | ||
+++ libedit-20121213-3.0.patched/src/editline/readline.h | ||
@@ -75,9 +75,7 @@ | ||
|
||
#ifndef CTRL | ||
#include <sys/ioctl.h> | ||
-#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) | ||
-#include <sys/ttydefaults.h> | ||
-#endif | ||
+/* sys/ttydefaults.h commented out in musl version */ | ||
#ifndef CTRL | ||
#define CTRL(c) ((c) & 037) | ||
#endif | ||
@@ -105,6 +103,10 @@ | ||
extern int rl_point, rl_end; | ||
extern int history_base, history_length; | ||
extern int max_input_history; | ||
+/* compatibility fix: max_input_history was renamed to | ||
+ history_max_entries in readline 4.2, this is required | ||
+ to build gdb 7.6 against libedit */ | ||
+#define history_max_entries max_input_history | ||
extern char *rl_basic_word_break_characters; | ||
extern char *rl_completer_word_break_characters; | ||
extern char *rl_completer_quote_characters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters