提交 9f6e5e36 编写于 作者: 徐杰

musl支持IPv6

Issue:https://e.gitee.com/open_harmony/dashboard?issue=I7MML0Signed-off-by: N徐杰 <xujie223@huawei.com>
Change-Id: I265a86f5ee82057a16bba66839cbb0dbe91ea001
上级 9eab551a
......@@ -158,7 +158,7 @@ template("musl_libs") {
defines += [
"OHOS_DNS_PROXY_BY_NETSYS=1",
"OHOS_PERMISSION_INTERNET=1",
"STANDARD_SYSTEM",
"OHOS_DISABLE_IPV6=0",
]
}
......
......@@ -166,10 +166,10 @@ static int name_from_dns(struct address buf[static MAXADDRS], char canon[static
{ .af = AF_INET, .rr = RR_AAAA },
};
#ifdef STANDARD_SYSTEM
for (i=0; i<1; i++) {
#if OHOS_DISABLE_IPV6
for (i = 0; i < 1; i++) {
#else
for (i=0; i<2; i++) {
for (i = 0; i < 2; i++) {
#endif
if (family != afrr[i].af) {
qlens[nq] = __res_mkquery(0, name, 1, afrr[i].rr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册