Commit 2d590663 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

Include <readline.h> and <history.h> if applicable.

Rev: src/sftp/rl.h:1.3
parent e75f7052
......@@ -42,26 +42,21 @@
/* Ehrm */
#define REMOTEMAXLEN 256
#ifdef HAVE_READLINE_READLINE_H
/* Use readline */
#include <readline/readline.h>
# include <readline/readline.h>
#else
# ifdef HAVE_READLINE_H
# include <readline.h>
# endif
#endif /* HAVE_READLINE_READLINE_H */
#ifdef HAVE_READLINE_HISTORY_H
#include <readline/history.h>
# include <readline/history.h>
#else
# ifdef HAVE_HISTORY_H
# include <history.h>
# endif
#endif /* HAVE_READLINE_HISTORY_H */
#define LSFTP_HISTNAME_VAR "LSFTP_HISTORY_FILE"
......@@ -73,7 +68,6 @@
/* These are "public" functions */
void lsftp_rl_init_get_line(char* prompt);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment