]> granicus.if.org Git - curl/commitdiff
fnmatch: disable if FTP is disabled
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Feb 2019 10:35:26 +0000 (11:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 Feb 2019 06:50:39 +0000 (07:50 +0100)
Closes #3551

lib/curl_fnmatch.c

index fbfd85c438deb973a2ea40be59bf1cb61464d38f..846ecaec3a5b21239af0502b15310b6ec59f22a9 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 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
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 #include "curl_setup.h"
-
+#ifndef CURL_DISABLE_FTP
 #include <curl/curl.h>
 
 #include "curl_fnmatch.h"
@@ -394,3 +394,5 @@ int Curl_fnmatch(void *ptr, const char *pattern, const char *string)
 }
 
 #endif
+
+#endif /* if FTP is disabled */