diff options
-rw-r--r-- | src/tool_metalink.c | 4 | ||||
-rw-r--r-- | src/tool_metalink.h | 7 |
2 files changed, 10 insertions, 1 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 */ 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); |