From 721b05e3436884fc1e1b55f211e7fa4251d92a2a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 20 Feb 2002 13:46:53 +0000 Subject: Nico Baggus' VMS tweaks --- lib/ftp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index 6b142dd8a..5ec23aafe 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -55,6 +55,7 @@ #include #endif #ifdef VMS +#include #include #endif #endif @@ -1575,7 +1576,7 @@ CURLcode ftp_perform(struct connectdata *conn) struct tm buffer; tm = (struct tm *)localtime_r(&data->info.filetime, &buffer); #else - tm = localtime(&data->info.filetime); + tm = localtime((unsigned long *)&data->info.filetime); #endif /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */ strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S %Z\r\n", -- cgit v1.2.3