perhaps of interes for some cygwin/lftp users like me.
i made a little patch for lftp-3.2.1.tar.gz to a.) make lftp compile and
install on cygwin and b.) get rid of annoying log messages that i had
without the second patch in the patchfile.
anyways, i didn't test all functions of lftp but for me it installed
fine and runs everything i need (ftp,ftp via proxy, sftp, ssl support ...).
if anyone is willing to try the patch, let me know about problems or
other stuff related to it.
regards
Thorsten
--- src/ftpclass.cc 2005-07-14 11:48:06.899384000 +0200
+++ src/ftpclass.cc.new 2005-07-14 12:18:04.219619800 +0200
@@ -170,7 +170,7 @@
len=sizeof(c);
if(getpeername(control_sock,&c.sa,&len)==-1)
{
- Log::global->Format(0,"getpeername(control_sock): %s\n",strerror(errno));
+// Log::global->Format(0,"getpeername(control_sock):
%s\n",strerror(errno));
return !verify_address;
}
--- src/ResMgr.cc 2004-05-28 09:57:05.000000000 +0200
+++ src/ResMgr.cc.new 2005-07-14 11:43:21.015452500 +0200
@@ -729,11 +729,6 @@
return full || (n>=start && n<=end);
}
-#if !HAVE_DECL_RANDOM
-CDECL long random();
-CDECL void srandom(unsigned seed);
-#endif
-
int Range::Random()
{
static bool init=false;