HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: FreeBSD?
Author: Xavier Roche
Date: 02/24/2001 19:17
 
Darn... try this:

for i in `find / -name "*.h" 2>/dev/null`; do if grep -
E '^extern int ftime' "$i">/dev/null; then echo "ok: 
$i"; fi; done

If this still doesn't work, you'll have to patch the 
source :)
In htslib.c, patch both mtime_local and filetime:

// number of millisec since 1970
HTS_INLINE double mtime_local() {
  // struct timeb B;
  // ftime( &B );
  return (double) ( ((double) time_local() * (double) 
1000.0)
        + ((double) 0) );
}


/* sets file time. -1 if error */
int set_filetime(char* file,struct tm* tm_time) {
  struct utimbuf tim;
  // struct timeb B;
  // B.timezone=0;
  // ftime( &B ); 
  // tim.actime=tim.modtime=mktime(tm_time) - 
B.timezone*60; 
  tim.actime=tim.modtime=mktime(tm_time); 
  return utime(file,&tim);
}

But this is a hack.. please tell me if the ftime() 
could be found or not!


 
Reply Create subthread


All articles

Subject Author Date
Re: FreeBSD?

02/24/2001 19:06
Re: FreeBSD?

02/24/2001 19:17
Re: FreeBSD?

02/24/2001 21:03
Re: FreeBSD?

02/25/2001 10:01
Re: FreeBSD?

02/25/2001 18:14




4

Created with FORUM 2.0.11