diff -r 53e1185e2366 -r 3b24a0bd41ee src/main.c --- a/src/main.c Tue Jan 06 14:06:00 2009 +0000 +++ b/src/main.c Wed Jan 07 17:17:10 2009 +0000 @@ -19,6 +19,8 @@ #define _GNU_SOURCE +#include "config.h" + #include #include #include @@ -28,7 +30,9 @@ #include #include #include +#ifdef HAVE_CURL #include +#endif #include #include #include "razor.h" @@ -348,6 +352,9 @@ static int download_if_missing(const char *url, const char *file) { +#ifndef HAVE_CURL + return 1; +#else CURL *curl; struct stat buf; char error[256]; @@ -398,6 +405,7 @@ curl_easy_cleanup(curl); return 0; +#endif /* HAVE_CURL */ } #define YUM_URL "http://download.fedora.redhat.com" \