Re: Error building 3.3.4 with Sun C++ compiler

Albert Chin <[email protected]> Thu, 1 Dec 2005 20:24:00 -0600
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Tue, Nov 29, 2005 at 05:52:12PM +0300, Alexander V. Lukyanov wrote:
> On Fri, Nov 25, 2005 at 01:42:30PM -0600, Albert Chin wrote:
> > "ftpclass.cc", line 2316: Error: The operation "long<= const std::tm*"
> > is illegal.
> 
> Does this patch help?

Yes. There is another instance of the error in ftpclass.cc. A full
patched based on your patch is attached.

Thanks!

-- 
albert chin ([email protected])
a (text/plain, 767 B)
Index: src/ftpclass.cc
===================================================================
--- src/ftpclass.cc.orig	2005-11-11 10:08:26.000000000 -0600
+++ src/ftpclass.cc	2005-11-30 09:20:26.230893000 -0600
@@ -2313,7 +2313,7 @@
       && expect->Count()==1 && use_stat
       && !conn->ssl_is_activated() && !conn->proxy_is_http)
       {
-	 if(stat_time+stat_interval<=now)
+	 if(stat_time+stat_interval<=time_t(now))
 	 {
 	    // send STAT to know current position.
 	    SendUrgentCmd("STAT");
@@ -3947,7 +3947,7 @@
 	    return(_("Sending commands..."));
 	 if(!expect->IsEmpty())
 	    return(_("Waiting for response..."));
-	 if(retry_time>now)
+	 if(retry_time>time_t(now))
 	    return _("Delaying before retry");
 	 return(_("Connection idle"));
       }