summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_operate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index e3fec0b4a..021b23ade 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -322,6 +322,9 @@ static CURLcode pre_transfer(struct GlobalConfig *global,
if(uploadfilesize != -1) {
struct OperationConfig *config = per->config; /* for the macro below */
+#ifdef CURL_DISABLE_LIBCURL_OPTION
+ (void)config;
+#endif
my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize);
}
per->input.fd = per->infd;