fixed compilation warnings and errors when not using curl
This commit is contained in:
@@ -137,7 +137,9 @@ static chunk_t post(private_fetcher_t *this, const char *request_type, chunk_t r
|
||||
*/
|
||||
static void destroy(private_fetcher_t *this)
|
||||
{
|
||||
#ifdef LIBCURL
|
||||
curl_easy_cleanup(this->curl);
|
||||
#endif /* LIBCURL */
|
||||
free(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -176,8 +176,9 @@ struct whitelist_t {
|
||||
};
|
||||
|
||||
#ifdef LIBCURL
|
||||
/* dummy declaration for whitelisting */
|
||||
void *Curl_getaddrinfo(void);
|
||||
#endif
|
||||
#endif /* LIBCURL */
|
||||
|
||||
whitelist_t whitelist[] = {
|
||||
{pthread_create, 2542},
|
||||
@@ -191,8 +192,10 @@ whitelist_t whitelist[] = {
|
||||
{register_printf_function, 159},
|
||||
{syslog, 45},
|
||||
{dlopen, 109},
|
||||
# ifdef LIBCURL
|
||||
/* from /usr/lib/libcurl.so.3 */
|
||||
{Curl_getaddrinfo, 480},
|
||||
# endif /* LIBCURL */
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user