mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-16 16:16:44 +00:00
Update libcurl webports and dependencies for IPv6 support
This commit is contained in:
parent
584d504273
commit
fb5988ffec
10
libchelper.c
10
libchelper.c
@ -1,5 +1,6 @@
|
|||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
// This function is defined but not implemented by newlib
|
// This function is defined but not implemented by newlib
|
||||||
int ftime(struct timeb *tp) {
|
int ftime(struct timeb *tp) {
|
||||||
@ -15,4 +16,11 @@ int ftime(struct timeb *tp) {
|
|||||||
tp->dstflag = 0;
|
tp->dstflag = 0;
|
||||||
|
|
||||||
return 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;
|
||||||
|
}
|
||||||
|
@ -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_FORBID_REUSE, 1L);
|
||||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 3L);
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 3L);
|
||||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L);
|
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_WRITEDATA, data);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url);
|
curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user