summaryrefslogtreecommitdiff
path: root/Ports/bash
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-18 09:47:32 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-18 11:29:08 +0200
commit07c765e25801685429721460e215424832b3c795 (patch)
treeeb0f2979df135ce2dcedaafc2de8227c2a72f23f /Ports/bash
parent181eacd3ba9cab1736b6557ea43f44cefbad3be8 (diff)
downloadserenity-07c765e25801685429721460e215424832b3c795.zip
Ports: Make bash link again
No idea why this was suddenly broken, but removing these duplicated declarations make it build to completion again.
Diffstat (limited to 'Ports/bash')
-rw-r--r--Ports/bash/patches/remove-duplicate-declarations.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/Ports/bash/patches/remove-duplicate-declarations.patch b/Ports/bash/patches/remove-duplicate-declarations.patch
new file mode 100644
index 0000000000..ba9c283b93
--- /dev/null
+++ b/Ports/bash/patches/remove-duplicate-declarations.patch
@@ -0,0 +1,21 @@
+--- bash-5.0/lib/readline/terminal.c.orig 2020-05-18 09:39:55.104000000 +0100
++++ bash-5.0/lib/readline/terminal.c 2020-05-18 09:40:42.409654415 +0100
+@@ -102,12 +102,12 @@
+
+ static int tcap_initialized;
+
+-#if !defined (__linux__) && !defined (NCURSES_VERSION)
+-# if defined (__EMX__) || defined (NEED_EXTERN_PC)
+-extern
+-# endif /* __EMX__ || NEED_EXTERN_PC */
+-char PC, *BC, *UP;
+-#endif /* !__linux__ && !NCURSES_VERSION */
++// #if !defined (__linux__) && !defined (NCURSES_VERSION)
++// # if defined (__EMX__) || defined (NEED_EXTERN_PC)
++// extern
++// # endif /* __EMX__ || NEED_EXTERN_PC */
++// char PC, *BC, *UP;
++// #endif /* !__linux__ && !NCURSES_VERSION */
+
+ /* Some strings to control terminal actions. These are output by tputs (). */
+ char *_rl_term_clreol;