# include <fcntl.h>
#endif
+#ifdef HAVE_LIBMETALINK
+
#include <metalink/metalink_parser.h>
#include "rawstr.h"
}
config->metalinkfile_last = 0;
}
+
+#endif /* HAVE_LIBMETALINK */
/*
* Counts the resource in the metalinkfile.
*/
+#ifdef HAVE_LIBMETALINK
int count_next_metalink_resource(metalinkfile *mlfile);
-
void clean_metalink(struct Configurable *config);
+#else
+#define count_next_metalink_resource(x) 0
+#define clean_metalink(x)
+#endif
+
int parse_metalink(struct Configurable *config, const char *infile);