From 6015b71c4e3ef4dbb79839939490215b7e8b8ead Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 26 May 2012 23:20:23 +0200 Subject: metalink: fix build errors when disabled --- src/tool_metalink.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/tool_metalink.h') diff --git a/src/tool_metalink.h b/src/tool_metalink.h index e3c66fc23..25feddcad 100644 --- a/src/tool_metalink.h +++ b/src/tool_metalink.h @@ -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); -- cgit v1.2.3