mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
support compilation without ipv6
This commit is contained in:
parent
9375488b57
commit
d842c9579d
29
recipes/net/curl/ipv6.patch
Normal file
29
recipes/net/curl/ipv6.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
diff --git a/lib/asyn-thrdd.c b/lib/asyn-thrdd.c
|
||||||
|
index 90f055c2..4db5ab02 100644
|
||||||
|
--- a/lib/asyn-thrdd.c
|
||||||
|
+++ b/lib/asyn-thrdd.c
|
||||||
|
@@ -481,7 +481,11 @@ static void async_thrdd_report_item(struct Curl_easy *data,
|
||||||
|
struct dynbuf tmp;
|
||||||
|
const char *sep = "";
|
||||||
|
const struct Curl_addrinfo *ai = item->res;
|
||||||
|
+#ifdef USE_IPV6
|
||||||
|
int ai_family = (item->dns_queries & CURL_DNSQ_AAAA) ? AF_INET6 : AF_INET;
|
||||||
|
+#else
|
||||||
|
+ int ai_family = AF_INET;
|
||||||
|
+#endif
|
||||||
|
CURLcode result;
|
||||||
|
|
||||||
|
if(!CURL_TRC_DNS_is_verbose(data))
|
||||||
|
@@ -789,10 +793,12 @@ const struct Curl_addrinfo *Curl_async_get_ai(struct Curl_easy *data,
|
||||||
|
if(thrdd->res_A)
|
||||||
|
return async_thrdd_get_ai(thrdd->res_A->res, ai_family, index);
|
||||||
|
break;
|
||||||
|
+#ifdef USE_IPV6
|
||||||
|
case AF_INET6:
|
||||||
|
if(thrdd->res_AAAA)
|
||||||
|
return async_thrdd_get_ai(thrdd->res_AAAA->res, ai_family, index);
|
||||||
|
break;
|
||||||
|
+#endif
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
[source]
|
[source]
|
||||||
git = "https://github.com/curl/curl.git"
|
git = "https://github.com/curl/curl.git"
|
||||||
rev = "curl-8_20_0"
|
rev = "curl-8_20_0"
|
||||||
patches = ["redox.patch"]
|
patches = ["ipv6.patch", "redox.patch"]
|
||||||
shallow_clone = true
|
shallow_clone = true
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
|
|||||||
12
recipes/web/netsurf/ipv6.patch
Normal file
12
recipes/web/netsurf/ipv6.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff '--color=always' -Naur a/netsurf/utils/config.h b/netsurf/utils/config.h
|
||||||
|
[1m--- a/netsurf/utils/config.h 2026-06-03 23:50:18.641104799 +0000[0m
|
||||||
|
[1m+++ b/netsurf/utils/config.h 2026-06-03 23:53:51.866091024 +0000[0m
|
||||||
|
[36m@@ -200,4 +200,8 @@[0m
|
||||||
|
#define NO_IPV6
|
||||||
|
#endif
|
||||||
|
|
||||||
|
[32m+#ifndef AF_INET6[0m
|
||||||
|
[32m+ #define NO_IPV6[0m
|
||||||
|
[32m+#endif[0m
|
||||||
|
[32m+[0m
|
||||||
|
#endif
|
||||||
@ -2,6 +2,7 @@
|
|||||||
tar = "https://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-3.11.tar.gz"
|
tar = "https://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-3.11.tar.gz"
|
||||||
blake3 = "cd406668a9ed5712efac1a8685125b83626690b73bbc6cb5de82ef00e3f65087"
|
blake3 = "cd406668a9ed5712efac1a8685125b83626690b73bbc6cb5de82ef00e3f65087"
|
||||||
patches = [
|
patches = [
|
||||||
|
"./ipv6.patch",
|
||||||
"./01_redox.patch"
|
"./01_redox.patch"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user