summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-06 01:04:04 +0200
committerVicent Marti <tanoku@gmail.com>2011-07-06 01:04:04 +0200
commite9c6571d7fd39c82232fd965544ce34c6974a441 (patch)
tree13d699955905de73aa437b0c1ea46e4bc20e00d9 /src/util.c
parent6507743400b8189d31aa49f775fd06b2ed504fbd (diff)
downloadlibgit2-e9c6571d7fd39c82232fd965544ce34c6974a441.tar.gz
fnmatch: Use native on Unix, emulate on Win32
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
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;