diff options
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/util.c b/src/util.c index 5b8a1367c..7bfc08be4 100644 --- a/src/util.c +++ b/src/util.c @@ -1,14 +1,12 @@ #include <git2.h> #include "common.h" -#include "fnmatch.h" #include <stdarg.h> #include <stdio.h> #include <ctype.h> +#include "posix.h" #ifdef _MSV_VER # include <Shlwapi.h> -#else -# include <fnmatch.h> #endif void git_libgit2_version(int *major, int *minor, int *rev) @@ -31,7 +29,7 @@ int git__fnmatch(const char *pattern, const char *name, int flags) { int ret; - ret = fnmatch(pattern, name, flags); + ret = p_fnmatch(pattern, name, flags); switch (ret) { case 0: return GIT_SUCCESS; |
