]> git.deb.at Git - pkg/abook.git/blobdiff - abook_rl.c
autoconf/automake update
[pkg/abook.git] / abook_rl.c
index 00410f49a3485e9dfca6fe3559bf970ef56ba168..c09b4bb6dc4866e8402bfb4b1f37c0a6b58459b4 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 #ifdef HANDLE_MULTIBYTE
-#      include <wchar.h>
 #      include <mbswidth.h>
 #endif
 
@@ -101,7 +100,9 @@ abook_rl_init(bool use_completion)
 {
        rl_readline_name = RL_READLINE_NAME;
        
+#if RL_VERSION_MAJOR >= 4
        rl_already_prompted = 1;
+#endif
        rl_catch_sigwinch = 0;
        
        rl_redisplay_function = rline_update;