33 lines
903 B
Plaintext
33 lines
903 B
Plaintext
$NetBSD: patch-ad,v 1.3 2015/10/14 18:32:54 wiz Exp $
|
|
|
|
--- src/sqsh_readline.c.orig 2001-11-05 16:05:56.000000000 +0000
|
|
+++ src/sqsh_readline.c
|
|
@@ -33,17 +33,7 @@
|
|
|
|
#if defined(USE_READLINE)
|
|
#include <readline/readline.h>
|
|
-
|
|
-/*
|
|
- * Readline history functions - for some reason not all
|
|
- * readline installs have history.h available, so we do
|
|
- * this.
|
|
- */
|
|
-extern void stifle_history();
|
|
-extern int read_history();
|
|
-extern int write_history();
|
|
-extern void add_history();
|
|
-
|
|
+#include <readline/history.h>
|
|
#endif /* USE_READLINE */
|
|
|
|
/*-- Current Version --*/
|
|
@@ -129,7 +119,7 @@ int sqsh_readline_init()
|
|
|
|
rl_readline_name = "sqsh" ;
|
|
rl_completion_entry_function = (rl_compentry_func_t*)sqsh_completion ;
|
|
- rl_attempted_completion_function = (CPPFunction*)sqsh_completion ;
|
|
+ rl_attempted_completion_function = sqsh_completion ;
|
|
#endif /* USE_READLINE */
|
|
|
|
return True ;
|