index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2011-10-30 13:33:14 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-11-13 14:19:00 -0500 |
commit | 902305f1633298ff0ef7cd2bfbed0e91aae91646 (patch) | |
tree | 84b45ee05d773a42b301a98f06153a00de2b9835 /lib/libalpm/util.c | |
parent | 64d54f674150fdcf4b925f7f27067c7ec0446863 (diff) |
-rw-r--r-- | lib/libalpm/util.c | 6 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index cbc5bdfb..5070cb93 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -34,6 +34,7 @@ #include <limits.h> #include <sys/wait.h> #include <locale.h> /* setlocale */ +#include <fnmatch.h> /* libarchive */ #include <archive.h> @@ -1188,6 +1189,11 @@ int _alpm_access(alpm_handle_t *handle, const char *dir, const char *file, int a return ret; } +int _alpm_fnmatch(const void *pattern, const void *string) +{ + return fnmatch(pattern, string, 0); +} + #ifndef HAVE_STRNDUP /* A quick and dirty implementation derived from glibc */ static size_t strnlen(const char *s, size_t max) |