Re: Error building 3.3.4 with Sun C++ compiler
"Alexander V. Lukyanov" <[email protected]> Tue, 29 Nov 2005 17:52:12 +0300
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
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? -- Alexander. | http://www.yars.free.net/~lav/
diff
(text/plain, 595 B)
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.370
diff -u -p -r1.370 ftpclass.cc
--- ftpclass.cc 19 Nov 2005 07:08:19 -0000 1.370
+++ ftpclass.cc 29 Nov 2005 14:51:02 -0000
@@ -2312,7 +2312,7 @@ int Ftp::Do()
&& 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");