From 26a8e37fdcab433c8e623b29fb35c0907b2a05de Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 14 Dec 2002 15:18:37 +0000 Subject: [w3m-dev 03568] Re: preserve timestamp * etc.c (USE_COOKIE): moved * file.c (utime.h): include (setModtime): added (loadGeneralFile): set f.modtime (_doFileCopy): setModtime() (doFileSave): setModtime() * ftp.c (getFtpModtime): added (openFTP): pass URLFile, set modtime * html.h (URLFile): add modtime * proto.h (openFTP): arg URLFile *uf (mymktime): always * url.c (init_stream): initialize modtime (openFTPStream): pass URLFile (openURL): openFTPStream From: Takahashi Youichirou --- etc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc.c') diff --git a/etc.c b/etc.c index 514ef6e..616bdf2 100644 --- a/etc.c +++ b/etc.c @@ -1,4 +1,4 @@ -/* $Id: etc.c,v 1.42 2002/11/27 16:40:19 ukai Exp $ */ +/* $Id: etc.c,v 1.43 2002/12/14 15:18:38 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -1518,7 +1518,6 @@ tmpfname(int type, char *ext) return tmpf; } -#ifdef USE_COOKIE static char *monthtbl[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" @@ -1728,6 +1727,7 @@ mymktime(char *timestr) (hour * 60 * 60) + (min * 60) + sec); } +#ifdef USE_COOKIE #ifdef INET6 #include #endif /* INET6 */ -- cgit v1.2.3