X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnginx.c;h=4e4ce3bbc6115572873668a76507f80ccd82b316;hb=d5565943cd7ee338e5b750a027faff8115df4c72;hp=1c537a85e46e7ac80e1502f3647a9f29fa6bdd64;hpb=76d9c9033e021cbdb0da0fc2b0ad23bc3d7ad487;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 1c537a85..4e4ce3bb 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -181,6 +181,7 @@ static int init (void) curl_easy_setopt (curl, CURLOPT_CAINFO, cacert); } +#ifdef HAVE_CURLOPT_TIMEOUT_MS if (timeout != NULL) { curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, atol(timeout)); @@ -190,6 +191,7 @@ static int init (void) curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, CDTIME_T_TO_MS(plugin_get_interval())); } +#endif return (0); } /* void init */