Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-06 11:20:51 -0500
committerDan McGee <dan@archlinux.org>2010-09-06 11:20:51 -0500
commitfe788ee4a68d2a8ba3bc3f938172294589c36fc4 (patch)
tree4de0ab1764f2b64502186d15cc1a11e4f33c8240 /lib/libalpm/alpm.c
parent881bf5c90f18cae47d4da06e570c934fdbdd4ecc (diff)
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/alpm.c')
-rw-r--r--lib/libalpm/alpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 6f4f4a4c..3f9cfff3 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -24,7 +24,7 @@
#include "config.h"
/* connection caching setup */
-#ifdef HAVE_FETCH
+#ifdef HAVE_LIBFETCH
#include <fetch.h>
#endif
@@ -59,7 +59,7 @@ int SYMEXPORT alpm_initialize(void)
bindtextdomain("libalpm", LOCALEDIR);
#endif
-#ifdef HAVE_FETCH
+#ifdef HAVE_LIBFETCH
fetchConnectionCacheInit(5, 1);
#endif
@@ -82,7 +82,7 @@ int SYMEXPORT alpm_release(void)
_alpm_handle_free(handle);
handle = NULL;
-#ifdef HAVE_FETCH
+#ifdef HAVE_LIBFETCH
fetchConnectionCacheClose();
#endif