On Thu, Dec 23, 2004 at 08:41:29PM +0100, Uwe Wolfram wrote:
> Whereas I've been able to compile lftp with Sun's Forte 6 I have
> trouble to do the same with Sun Studio 9 compilers after an upgrade.
> Seems that the C++ compiler has become more squeamish.
>
> "LsCache.cc", line 246: Error: Overloading ambiguity between
> "TimeDate::operator const std::tm*()" and "Time::operator long()".

Does this patch help?

--- LsCache.cc  21 Apr 2004 08:35:27 -0000      1.25
+++ LsCache.cc  24 Dec 2004 06:46:53 -0000
@@ -243,7 +243,7 @@ int LsCache::ExpireHelper::Do()
       if(!expiring)
         return STALL;
    }
-   time_t t_out=expiring->timestamp+ttl.Seconds()-now;
+   time_t t_out=expiring->timestamp+ttl.Seconds()-(time_t)now;
    if(t_out>1024)
       t_out=1024;
    Timeout(t_out*1000);

Reply via email to