mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fixed C++ out-of-order designated initialization on MacOS with gcc
This commit is contained in:
@@ -52,12 +52,7 @@ struct addrinfo ComplexDnsTask::hints =
|
||||
{
|
||||
.ai_flags = AI_NUMERICSERV | AI_NUMERICHOST,
|
||||
.ai_family = AF_UNSPEC,
|
||||
.ai_socktype = SOCK_STREAM,
|
||||
.ai_protocol = 0,
|
||||
.ai_addrlen = 0,
|
||||
.ai_addr = NULL,
|
||||
.ai_canonname = NULL,
|
||||
.ai_next = NULL
|
||||
.ai_socktype = SOCK_STREAM
|
||||
};
|
||||
|
||||
CommMessageOut *ComplexDnsTask::message_out()
|
||||
|
||||
@@ -56,12 +56,7 @@ static constexpr struct addrinfo __ai_hints =
|
||||
.ai_flags = 0,
|
||||
#endif
|
||||
.ai_family = AF_UNSPEC,
|
||||
.ai_socktype = SOCK_STREAM,
|
||||
.ai_protocol = 0,
|
||||
.ai_addrlen = 0,
|
||||
.ai_addr = NULL,
|
||||
.ai_canonname = NULL,
|
||||
.ai_next = NULL
|
||||
.ai_socktype = SOCK_STREAM
|
||||
};
|
||||
|
||||
struct DnsContext
|
||||
|
||||
Reference in New Issue
Block a user