diff --git a/src/write_http.c b/src/write_http.c
index 3b594be497ae371ac53e66098dfb3a6115d646dc..ed596bbf56b9e9ee88becd425126951a4591fb91 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
(long) cb->low_speed_time);
}
+#ifdef HAVE_CURLOPT_TIMEOUT_MS
if (cb->timeout > 0)
curl_easy_setopt (cb->curl, CURLOPT_TIMEOUT_MS, (long) cb->timeout);
+#endif
curl_easy_setopt (cb->curl, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt (cb->curl, CURLOPT_USERAGENT, COLLECTD_USERAGENT);