summaryrefslogtreecommitdiff
path: root/src/tool_metalink.c
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.c
parent1bfd750f3f9e173ce5a6735756106cf6a1804960 (diff)
downloadcurl-6015b71c4e3ef4dbb79839939490215b7e8b8ead.tar.gz
metalink: fix build errors when disabled
Diffstat (limited to 'src/tool_metalink.c')
-rw-r--r--src/tool_metalink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_metalink.c b/src/tool_metalink.c
index 6e18b4247..58aae831d 100644
--- a/src/tool_metalink.c
+++ b/src/tool_metalink.c
@@ -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 */