mirror of
https://github.com/simh/simh.git
synced 2026-02-26 16:54:22 +00:00
Made dynamic libreadline loading more robust for some systems
This commit is contained in:
2
scp.c
2
scp.c
@@ -3965,6 +3965,8 @@ if (!initialized) {
|
||||
handle = dlopen("libncurses." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
||||
handle = dlopen("libcurses." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
||||
handle = dlopen("libreadline." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
||||
if (!handle)
|
||||
handle = dlopen("libreadline." __STR(HAVE_DLOPEN) ".6", RTLD_NOW|RTLD_GLOBAL);
|
||||
if (handle) {
|
||||
p_readline = dlsym(handle, "readline");
|
||||
p_add_history = dlsym(handle, "add_history");
|
||||
|
||||
Reference in New Issue
Block a user