summaryrefslogtreecommitdiff
path: root/src/tool_metalink.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-05-26 23:20:23 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-05-26 23:20:23 +0200
commit6015b71c4e3ef4dbb79839939490215b7e8b8ead (patch)
tree47b24ecf1add12253ba308a8b635f404c342a130 /src/tool_metalink.h
parent1bfd750f3f9e173ce5a6735756106cf6a1804960 (diff)
downloadcurl-6015b71c4e3ef4dbb79839939490215b7e8b8ead.tar.gz
metalink: fix build errors when disabled
Diffstat (limited to 'src/tool_metalink.h')
-rw-r--r--src/tool_metalink.h7
1 files changed, 6 insertions, 1 deletions
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);