From 4f5a6a33b46f9c389e6cfcd822c6fc874a3a9752 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 16 Dec 2004 18:09:27 +0000 Subject: moved the lseek() and stat() magic defines to setup.h and now take advantage of struct_stat in formdata.c as well, to support formpost uploads of large files on Windows too --- lib/formdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/formdata.c') diff --git a/lib/formdata.c b/lib/formdata.c index 07e5a0ddf..4f0845c3f 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -835,7 +835,7 @@ static CURLcode AddFormData(struct FormData **formp, /* Since this is a file to be uploaded here, add the size of the actual file */ if(!strequal("-", newform->line)) { - struct stat file; + struct_stat file; if(!stat(newform->line, &file)) { *size += file.st_size; } -- cgit v1.2.3