Skip to content
Snippets Groups Projects
Commit 6015b71c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

metalink: fix build errors when disabled

parent 1bfd750f
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@
# include <fcntl.h>
#endif
#ifdef HAVE_LIBMETALINK
#include <metalink/metalink_parser.h>
#include "rawstr.h"
......@@ -618,3 +620,5 @@ void clean_metalink(struct Configurable *config)
}
config->metalinkfile_last = 0;
}
#endif /* HAVE_LIBMETALINK */
......@@ -52,9 +52,14 @@ typedef struct metalinkfile {
/*
* 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment