Revision
17001
Author
mochouinard
Date
2010-03-16 04:28:53 -0500 (Tue, 16 Mar 2010)

Log Message

mod_xml_curl: Compile issues of missing define for older version

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c (17000 => 17001)


--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	2010-03-16 03:49:18 UTC (rev 17000)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	2010-03-16 09:28:53 UTC (rev 17001)
@@ -242,8 +242,12 @@
 		}
 
 		if (binding->timeout_ms) {
+#ifdef CURLOPT_TIMEOUT_MS
 			curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT_MS, binding->timeout_ms);
-                        curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
+#else
+			curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, binding->timeout_ms);
+#endif
+			curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
 		}
 
 		if (binding->disable100continue) {