From 9386369bd5d3e3114b8b4bf7bf924e457984e367 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 28 Feb 2012 17:56:41 -0800 Subject: [PATCH] Made dynamic libreadline loading more robust for some systems --- scp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scp.c b/scp.c index 3e5dd88b..2d7b5deb 100644 --- a/scp.c +++ b/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");