HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: COmpiling Httrack on openbsd 3.9
Author: Xavier Roche
Date: 08/14/2006 21:21
 
>htslib.c:2668: error: invalid operands to binary -

Darn! "timezone" does not seems to be declared.

Can you try to inset the following lines in htslib.c, around line 2668, just
before "return (time_t) (t - timezone);" please ? :

#ifdef BSD
    time_t now = time(NULL); 
    time_t timezone = - localtime(&now)->tm_gmtoff;
#endif

That is (full 'getGMT' function):

static time_t getGMT(struct tm *tm) {		/* hey, time_t is local! */
	time_t t = mktime(tm);
	if (t != (time_t) -1 && t != (time_t) 0) {
#ifdef BSD
    time_t now = time(NULL); 
    time_t timezone = - localtime(&now)->tm_gmtoff;
#endif
    return (time_t) (t - timezone);
	}
	return (time_t) -1;
}

And tell me if this is okay now ?
You'll also have to copy/paste the same function in src/proxy/store.c, around
line 1829

 
Reply Create subthread


All articles

Subject Author Date
COmpiling Httrack on openbsd 3.9

08/14/2006 18:45
Re: COmpiling Httrack on openbsd 3.9

08/14/2006 18:53
Re: COmpiling Httrack on openbsd 3.9

08/14/2006 20:10
Re: COmpiling Httrack on openbsd 3.9

08/14/2006 20:24
Re: COmpiling Httrack on openbsd 3.9

08/14/2006 20:43
Re: COmpiling Httrack on openbsd 3.9

08/14/2006 21:21
Re: COmpiling Httrack on openbsd 3.9

08/15/2006 00:01
Re: COmpiling Httrack on openbsd 3.9

08/15/2006 12:01
Re: COmpiling Httrack on openbsd 3.9

08/15/2006 19:39
Re: COmpiling Httrack on openbsd 3.9

08/17/2006 08:15
Re: COmpiling Httrack on openbsd 3.9

08/19/2006 11:18
Re: COmpiling Httrack on openbsd 3.9

08/19/2006 18:15
Re: COmpiling Httrack on openbsd 3.9

08/20/2006 16:06
Re: COmpiling Httrack on openbsd 3.9

08/28/2006 16:18




7

Created with FORUM 2.0.11