summaryrefslogtreecommitdiff
path: root/lib/wildcard.h
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/wildcard.h
parent7c70a3b1ad5e156243199642c9c0abf34f9f1d8e (diff)
downloadgnurl-0e2208ada6e4c3edeb01ce242e3e2ca06084680b.tar.gz
gnurl-0e2208ada6e4c3edeb01ce242e3e2ca06084680b.tar.bz2
gnurl-0e2208ada6e4c3edeb01ce242e3e2ca06084680b.zip
wildcard: disable from build when FTP isn't present
Diffstat (limited to 'lib/wildcard.h')
-rw-r--r--lib/wildcard.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/wildcard.h b/lib/wildcard.h
index b7826123a..306c8c99f 100644
--- a/lib/wildcard.h
+++ b/lib/wildcard.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2010 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2010 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -22,8 +22,9 @@
*
***************************************************************************/
-#include <curl/curl.h>
+#include "curl_setup.h"
+#ifndef CURL_DISABLE_FTP
#include "llist.h"
/* list of wildcard process states */
@@ -58,4 +59,9 @@ void Curl_wildcard_dtor(struct WildcardData *wc);
struct Curl_easy;
+#else
+/* FTP is disabled */
+#define Curl_wildcard_dtor(x)
+#endif
+
#endif /* HEADER_CURL_WILDCARD_H */