mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Minimal readline support
This commit is contained in:
parent
94e18fbed2
commit
6b1cdbca8b
@ -164,7 +164,7 @@ LineReader::InputStatus LineReader::readOneLine(const String & prompt)
|
||||
{
|
||||
void * dl_handle = dlopen("libreadline.so", RTLD_LAZY);
|
||||
if (dl_handle)
|
||||
readline_ptr = dlsym(dl_handle, "readline");
|
||||
readline_ptr = reinterpret_cast<char * (*)(const char *)>(dlsym(dl_handle, "readline"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user