aboutsummaryrefslogtreecommitdiffstats
path: root/etc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-14 15:18:37 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-14 15:18:37 +0000
commit26a8e37fdcab433c8e623b29fb35c0907b2a05de (patch)
tree9228e612a67095337200051b47b0f14c99485ac8 /etc.c
parent[w3m-dev 03567] default keybinding (diff)
downloadw3m-26a8e37fdcab433c8e623b29fb35c0907b2a05de.tar.gz
w3m-26a8e37fdcab433c8e623b29fb35c0907b2a05de.zip
[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 <nikuq@hk.airnet.ne.jp>
Diffstat (limited to '')
-rw-r--r--etc.c4
1 files changed, 2 insertions, 2 deletions
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 <pwd.h>
#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 <sys/socket.h>
#endif /* INET6 */