Update libcurl webports and dependencies for IPv6 support

This commit is contained in:
Cameron Gutman 2017-09-02 22:28:44 -07:00
parent 584d504273
commit fb5988ffec
6 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#include <sys/timeb.h>
#include <sys/time.h>
#include <stdlib.h>
// This function is defined but not implemented by newlib
int ftime(struct timeb *tp) {
@ -15,4 +16,11 @@ int ftime(struct timeb *tp) {
tp->dstflag = 0;
return 0;
}
}
// This function is required for libcurl to link but never
// called using by any of the APIs we use
unsigned alarm(unsigned seconds) {
abort();
return 0;
}

View File

@ -82,6 +82,7 @@ int http_request(char* url, PHTTP_DATA data) {
curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 1L);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 3L);
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, data);
curl_easy_setopt(curl, CURLOPT_URL, url);

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.