summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-05-05 17:08:21 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-13 08:17:09 +0200
commit0e2208ada6e4c3edeb01ce242e3e2ca06084680b (patch)
tree43f3fa28be281131d37729ad420df0555fb29f20 /lib/setopt.c
parent7c70a3b1ad5e156243199642c9c0abf34f9f1d8e (diff)
downloadcurl-0e2208ada6e4c3edeb01ce242e3e2ca06084680b.tar.gz
wildcard: disable from build when FTP isn't present
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 6352f486a..e5450d020 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2482,12 +2482,14 @@ static CURLcode vsetopt(struct Curl_easy *data, CURLoption option,
case CURLOPT_FNMATCH_FUNCTION:
data->set.fnmatch = va_arg(param, curl_fnmatch_callback);
break;
+#ifndef CURL_DISABLE_FTP
case CURLOPT_CHUNK_DATA:
data->wildcard.customptr = va_arg(param, void *);
break;
case CURLOPT_FNMATCH_DATA:
data->set.fnmatch_data = va_arg(param, void *);
break;
+#endif
#ifdef USE_TLS_SRP
case CURLOPT_TLSAUTH_USERNAME:
result = Curl_setstropt(&data->set.str[STRING_TLSAUTH_USERNAME_ORIG],