diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-06 11:20:51 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-06 11:20:51 -0500 |
commit | fe788ee4a68d2a8ba3bc3f938172294589c36fc4 (patch) | |
tree | 4de0ab1764f2b64502186d15cc1a11e4f33c8240 /lib/libalpm/error.c | |
parent | 881bf5c90f18cae47d4da06e570c934fdbdd4ecc (diff) | |
download | pacman-fe788ee4a68d2a8ba3bc3f938172294589c36fc4.tar.xz |
Fix libfetch configure checking
I don't know what I tested in commit 3e7b90ff6950, but it definitely wasn't
working as advertised. Fix the checks in the source code itself to match the
right define (HAVE_LIBFETCH), as well as make sure the configure check
defaults to looking for the library but not bailing if it could not be
found.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r-- | lib/libalpm/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index b64ee67c..c83f606e 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -31,7 +31,7 @@ #include <sys/param.h> /* MAXHOSTNAMELEN */ #endif -#ifdef HAVE_FETCH +#ifdef HAVE_LIBFETCH #include <fetch.h> /* fetchLastErrString */ #endif @@ -145,7 +145,7 @@ const char SYMEXPORT *alpm_strerror(int err) * error string instead. */ return _("libarchive error"); case PM_ERR_LIBFETCH: -#ifdef HAVE_FETCH +#ifdef HAVE_LIBFETCH return fetchLastErrString; #else /* obviously shouldn't get here... */ |