Loading lib/file.c +0 −8 Original line number Diff line number Diff line Loading @@ -167,14 +167,6 @@ CURLcode Curl_file_connect(struct connectdata *conn) return CURLE_OK; } #if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4) #define lseek(x,y,z) _lseeki64(x, y, z) #define struct_stat struct _stati64 #define fstat(fd,st) _fstati64(fd,st) #else #define struct_stat struct stat #endif CURLcode Curl_file_done(struct connectdata *conn, CURLcode status) { Loading lib/formdata.c +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading lib/setup.h +8 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,14 @@ typedef unsigned char bool; #define SEND_4TH_ARG 0 #endif /* To make large file support transparent even on Windows */ #if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4) #define lseek(x,y,z) _lseeki64(x, y, z) #define struct_stat struct _stati64 #define fstat(fd,st) _fstati64(fd,st) #else #define struct_stat struct stat #endif /* Below we define four functions. They should 1. close a socket Loading Loading
lib/file.c +0 −8 Original line number Diff line number Diff line Loading @@ -167,14 +167,6 @@ CURLcode Curl_file_connect(struct connectdata *conn) return CURLE_OK; } #if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4) #define lseek(x,y,z) _lseeki64(x, y, z) #define struct_stat struct _stati64 #define fstat(fd,st) _fstati64(fd,st) #else #define struct_stat struct stat #endif CURLcode Curl_file_done(struct connectdata *conn, CURLcode status) { Loading
lib/formdata.c +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading
lib/setup.h +8 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,14 @@ typedef unsigned char bool; #define SEND_4TH_ARG 0 #endif /* To make large file support transparent even on Windows */ #if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4) #define lseek(x,y,z) _lseeki64(x, y, z) #define struct_stat struct _stati64 #define fstat(fd,st) _fstati64(fd,st) #else #define struct_stat struct stat #endif /* Below we define four functions. They should 1. close a socket Loading