server: better readline check

Avoid _partial_ setups.

Fixes #1594.
This commit is contained in:
Dirk-Jan C. Binnema 2020-02-27 18:55:08 +02:00
parent 81d47bf21f
commit 4226a6e47f
1 changed files with 1 additions and 1 deletions

View File

@ -1289,7 +1289,7 @@ struct Readline {
};
/// Wrapper around readline (if available) or nothing otherwise.
#if defined(HAVE_LIBREADLINE) && defined(HAVE_READLINE_HISTORY)
#if defined(HAVE_LIBREADLINE) && defined(HAVE_READLINE_HISTORY) && defined(HAVE_READLINE_H)
Readline::Readline (const std::string& histpath, size_t max_lines):
histpath_{histpath}, max_lines_{max_lines}
{