Skip to content
Snippets Groups Projects
Commit f6abf506 authored by Elemer Lelik's avatar Elemer Lelik
Browse files

Merge pull request #62 from BenceJanosSzabo/master

hostid fix on solaris
parents 1aadf952 3b44c249
No related branches found
No related tags found
No related merge requests found
......@@ -301,8 +301,12 @@ CHARSTRING TTCN_Runtime::get_host_address(const CHARSTRING& type)
if (ipv4 == NULL) {
return CHARSTRING("");
}
} else if (type == "Ipv6") {
const IPv6Address * ipv6 = dynamic_cast<const IPv6Address*>(address);
}
if (type == "Ipv6") {
const IPv6Address * ipv6 = NULL;
#if defined(LINUX) || defined(CYGWIN17)
ipv6 = dynamic_cast<const IPv6Address*>(address);
#endif // LINUX || CYGWIN17
if (ipv6 == NULL) {
return CHARSTRING("");
}
......
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