Addressed build failure because of missing #ifdef AF_UNIX guard
CLA: trivial Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4067)
This commit is contained in:
parent
77a9c26e03
commit
326eaa941e
1 changed files with 2 additions and 0 deletions
|
@ -1522,11 +1522,13 @@ int s_client_main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef AF_UNIX
|
||||||
if (socket_family == AF_UNIX && socket_type != SOCK_STREAM) {
|
if (socket_family == AF_UNIX && socket_type != SOCK_STREAM) {
|
||||||
BIO_printf(bio_err,
|
BIO_printf(bio_err,
|
||||||
"Can't use unix sockets and datagrams together\n");
|
"Can't use unix sockets and datagrams together\n");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_SCTP
|
#ifndef OPENSSL_NO_SCTP
|
||||||
if (protocol == IPPROTO_SCTP) {
|
if (protocol == IPPROTO_SCTP) {
|
||||||
|
|
Loading…
Reference in a new issue