mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-23 02:12:12 +00:00
ifdef new instance of sin6_scope_id
Put inside HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID similar to existing instance. Should fix error on UnixWare 7.
This commit is contained in:
parent
6ffdcdda12
commit
95eca1e195
2
addr.c
2
addr.c
@ -92,7 +92,9 @@ addr_xaddr_to_sa(const struct xaddr *xa, struct sockaddr *sa, socklen_t *len,
|
|||||||
in6->sin6_family = AF_INET6;
|
in6->sin6_family = AF_INET6;
|
||||||
in6->sin6_port = htons(port);
|
in6->sin6_port = htons(port);
|
||||||
memcpy(&in6->sin6_addr, &xa->v6, sizeof(in6->sin6_addr));
|
memcpy(&in6->sin6_addr, &xa->v6, sizeof(in6->sin6_addr));
|
||||||
|
#ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
|
||||||
in6->sin6_scope_id = xa->scope_id;
|
in6->sin6_scope_id = xa->scope_id;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user