mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
metalink: fix build errors when disabled
This commit is contained in:
parent
1bfd750f3f
commit
6015b71c4e
@ -31,6 +31,8 @@
|
|||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBMETALINK
|
||||||
|
|
||||||
#include <metalink/metalink_parser.h>
|
#include <metalink/metalink_parser.h>
|
||||||
|
|
||||||
#include "rawstr.h"
|
#include "rawstr.h"
|
||||||
@ -618,3 +620,5 @@ void clean_metalink(struct Configurable *config)
|
|||||||
}
|
}
|
||||||
config->metalinkfile_last = 0;
|
config->metalinkfile_last = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_LIBMETALINK */
|
||||||
|
@ -52,9 +52,14 @@ typedef struct metalinkfile {
|
|||||||
/*
|
/*
|
||||||
* Counts the resource in the metalinkfile.
|
* Counts the resource in the metalinkfile.
|
||||||
*/
|
*/
|
||||||
|
#ifdef HAVE_LIBMETALINK
|
||||||
int count_next_metalink_resource(metalinkfile *mlfile);
|
int count_next_metalink_resource(metalinkfile *mlfile);
|
||||||
|
|
||||||
void clean_metalink(struct Configurable *config);
|
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);
|
int parse_metalink(struct Configurable *config, const char *infile);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user