From: Daniel Stenberg Date: Thu, 7 Feb 2019 10:35:26 +0000 (+0100) Subject: fnmatch: disable if FTP is disabled X-Git-Tag: curl-7_64_1~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc7ab4835b5fd09d0a6f57000633bb6bb6edfda1;p=curl fnmatch: disable if FTP is disabled Closes #3551 --- diff --git a/lib/curl_fnmatch.c b/lib/curl_fnmatch.c index fbfd85c43..846ecaec3 100644 --- a/lib/curl_fnmatch.c +++ b/lib/curl_fnmatch.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2018, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, , 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 #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 */