diff options
Diffstat (limited to 'Build/source/libs/zziplib/zziplib-src/bins/unzzipdir-zip.c')
-rw-r--r-- | Build/source/libs/zziplib/zziplib-src/bins/unzzipdir-zip.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Build/source/libs/zziplib/zziplib-src/bins/unzzipdir-zip.c b/Build/source/libs/zziplib/zziplib-src/bins/unzzipdir-zip.c index bfac8334837..b66ae689a10 100644 --- a/Build/source/libs/zziplib/zziplib-src/bins/unzzipdir-zip.c +++ b/Build/source/libs/zziplib/zziplib-src/bins/unzzipdir-zip.c @@ -6,6 +6,7 @@ */ #include <zzip/lib.h> +#include <zzip/__fnmatch.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -19,12 +20,6 @@ #include <io.h> #endif -#ifdef ZZIP_HAVE_FNMATCH_H -#include <fnmatch.h> -#else -#define fnmatch(x,y,z) strcmp(x,y) -#endif - static const char* comprlevel[] = { "stored", "shrunk", "redu:1", "redu:2", "redu:3", "redu:4", "impl:N", "toknze", "defl:N", "defl:B", "impl:B" }; @@ -105,8 +100,8 @@ unzzip_list (int argc, char ** argv, int verbose) char* name = entry.d_name; for (argn=1; argn < argc; argn++) { - if (! fnmatch (argv[argn], name, - FNM_NOESCAPE|FNM_PATHNAME|FNM_PERIOD)) + if (! _zzip_fnmatch (argv[argn], name, + _zzip_FNM_NOESCAPE|_zzip_FNM_PATHNAME|_zzip_FNM_PERIOD)) { long long usize = entry.st_size; if (!verbose) |