X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fascent.c;h=11175af5e6104afa7b39291fd77fd45441a0cb64;hb=b4cc5c7399adf79198aea816d44a42df25431d15;hp=501f294f7319960828a81909d6872f0146c69388;hpb=76d9c9033e021cbdb0da0fc2b0ad23bc3d7ad487;p=collectd.git diff --git a/src/ascent.c b/src/ascent.c index 501f294f..11175af5 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -590,11 +590,13 @@ static int ascent_init (void) /* {{{ */ if (cacert != NULL) curl_easy_setopt (curl, CURLOPT_CAINFO, cacert); +#ifdef HAVE_CURLOPT_TIMEOUT_MS if (timeout != NULL) curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, atol(timeout)); else curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, CDTIME_T_TO_MS(plugin_get_interval())); +#endif return (0); } /* }}} int ascent_init */