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

Fix Borland build.

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