diff --git a/src/nginx.c b/src/nginx.c
index 1c537a85e46e7ac80e1502f3647a9f29fa6bdd64..4e4ce3bbc6115572873668a76507f80ccd82b316 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
curl_easy_setopt (curl, CURLOPT_CAINFO, cacert);
}
+#ifdef HAVE_CURLOPT_TIMEOUT_MS
if (timeout != NULL)
{
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, atol(timeout));
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS,
CDTIME_T_TO_MS(plugin_get_interval()));
}
+#endif
return (0);
} /* void init */