summaryrefslogtreecommitdiff
path: root/app-shells/bash/files/bash-4.2-no-readline.patch
blob: 14eb6bf421e9f61a8f854c18e3cc8768579cbeb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
fix building when readline is disabled

--- a/builtins/complete.def
+++ b/builtins/complete.def
@@ -49,6 +49,8 @@ $END
 
 #include <config.h>
 
+#ifdef READLINE
+
 #include <stdio.h>
 
 #include "../bashtypes.h"
@@ -867,3 +869,5 @@ compopt_builtin (list)
 
   return (ret);
 }
+
+#endif