#define HAVE_CARES_CALLBACK_TIMEOUTS 1
#endif
+#ifdef TIZEN_TV_EXT
+#define DEFAULT_TIMEOUT 3000 /* ms */
+#define DEFAULT_TRIES 1
+#endif
+
/* The last 3 #include files should be in this order */
#include "curl_printf.h"
#include "curl_memory.h"
*/
CURLcode Curl_resolver_init(void **resolver)
{
+#ifndef TIZEN_TV_EXT
int status = ares_init((ares_channel*)resolver);
+#else
+ int status;
+ struct ares_options options;
+ int optmask = 0;
+
+ options.timeout = DEFAULT_TIMEOUT;
+ optmask |= ARES_OPT_TIMEOUTMS;
+
+ options.tries = DEFAULT_TRIES;
+ optmask |= ARES_OPT_TRIES;
+
+ status = ares_init_options((ares_channel*)resolver, &options, optmask);
+#endif
if(status != ARES_SUCCESS) {
if(status == ARES_ENOMEM)
return CURLE_OUT_OF_MEMORY;
CFLAGS+=" -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2 -fPIE -pie"
%if "%{tizen_profile_name}" == "tv"
CFLAGS+=" -DTIZEN_TV_EXT"
-%reconfigure --without-nss --without-gnutls --with-openssl --enable-ipv6 \
-%else
-%reconfigure --without-nss --without-gnutls --with-openssl --enable-ipv6 \
%endif
+%reconfigure --without-nss --without-gnutls --with-openssl --enable-ipv6 \
--with-ca-path==/etc/ssl/certs \
--with-ca-bundle=/etc/ssl/ca-bundle.pem \
--with-icu-uc \