aboutsummaryrefslogtreecommitdiffstats
path: root/plpftp
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2000-11-11 14:39:35 +0000
committerFritz Elfert <felfert@to.com>2000-11-11 14:39:35 +0000
commit67b6274d0f8fa796770ebb5201dbfaf2b7c1dd6d (patch)
tree58f7380a6246c0bfbc89975f311ad46d4e2d16a1 /plpftp
parent6302b9778db245516f808cb18d5fcc9d9b4bdf86 (diff)
downloadplptools-67b6274d0f8fa796770ebb5201dbfaf2b7c1dd6d.tar.gz
plptools-67b6274d0f8fa796770ebb5201dbfaf2b7c1dd6d.tar.bz2
plptools-67b6274d0f8fa796770ebb5201dbfaf2b7c1dd6d.zip
Added checks for broken libreadline-4 on RH7 (needs libcurses instead of
automatically using libtermcap which does export _NO_ symbols on RH7!!!) Added --disable-readline and --disable-history Fixed a function prototype
Diffstat (limited to 'plpftp')
-rw-r--r--plpftp/Makefile.am12
-rw-r--r--plpftp/ftp.cc4
2 files changed, 10 insertions, 6 deletions
diff --git a/plpftp/Makefile.am b/plpftp/Makefile.am
index 4ca89a0..4805577 100644
--- a/plpftp/Makefile.am
+++ b/plpftp/Makefile.am
@@ -2,12 +2,16 @@
#
INCLUDES=-I$(top_srcdir)/lib
-#if HAVE_LIBREADLINE
+if HAVE_LIBREADLINE
+if ADD_LIBCURSES
+LIBREADLINE=-lreadline -lcurses
+else
LIBREADLINE=-lreadline
-#endif
-#if HAVE_LIBHISTORY
+endif
+endif
+if HAVE_LIBHISTORY
LIBHISTORY=-lhistory
-#endif
+endif
bin_PROGRAMS = plpftp
plpftp_LDADD = $(top_srcdir)/lib/libplp.la $(LIBREADLINE) $(LIBHISTORY)
diff --git a/plpftp/ftp.cc b/plpftp/ftp.cc
index 595ca75..41fa429 100644
--- a/plpftp/ftp.cc
+++ b/plpftp/ftp.cc
@@ -1008,7 +1008,7 @@ do_completion(char *text, int start, int end)
rl_completion_entry_function = (Function *)null_completion;
if (start == 0)
- matches = completion_matches(text, command_generator);
+ matches = completion_matches(text, (CPFunction *)command_generator);
else {
int idx = 0;
char *name;
@@ -1029,7 +1029,7 @@ do_completion(char *text, int start, int end)
maskAttr = rfsv::PSI_A_DIR;
}
- matches = completion_matches(text, filename_generator);
+ matches = completion_matches(text, (CPFunction *)filename_generator);
}
return matches;
}