Skip to content
Snippets Groups Projects
Commit edff80ff authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix Borland build.

parent c5584fee
No related branches found
No related tags found
No related merge requests found
Pipeline #6641 passed
......@@ -268,14 +268,14 @@ isValidHostname(const char *str)
bool
isResolvableHostname(const char *str)
{
if (!isValidHostname(str)) {
return false;
}
struct addrinfo hints = {0};
struct addrinfo *res = NULL;
const char portnum[2] = "1";
if (!isValidHostname(str)) {
return false;
}
hints.ai_flags = PF_UNSPEC;
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment