Minimal readline support

This commit is contained in:
Alexey Milovidov 2020-01-19 21:42:35 +03:00
parent 94e18fbed2
commit 6b1cdbca8b

View File

@ -164,7 +164,7 @@ LineReader::InputStatus LineReader::readOneLine(const String & prompt)
{ {
void * dl_handle = dlopen("libreadline.so", RTLD_LAZY); void * dl_handle = dlopen("libreadline.so", RTLD_LAZY);
if (dl_handle) if (dl_handle)
readline_ptr = dlsym(dl_handle, "readline"); readline_ptr = reinterpret_cast<char * (*)(const char *)>(dlsym(dl_handle, "readline"));
} }
} }