From e106d05550bb744ecc9b775117fecbd0f8ab8334 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 14 Aug 2017 19:15:12 -0700 Subject: [PATCH] SCP: Add support to dynamically load libreadline7 --- scp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scp.c b/scp.c index 56b85bf3..4ae5ac54 100644 --- a/scp.c +++ b/scp.c @@ -7819,6 +7819,8 @@ if (prompt && (!initialized)) { handle = dlopen("libncurses." S__STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL); handle = dlopen("libcurses." S__STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL); handle = dlopen("libreadline." S__STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL); + if (!handle) + handle = dlopen("libreadline." S__STR(HAVE_DLOPEN) ".7", RTLD_NOW|RTLD_GLOBAL); if (!handle) handle = dlopen("libreadline." S__STR(HAVE_DLOPEN) ".6", RTLD_NOW|RTLD_GLOBAL); if (!handle)