From: Balaji Marisetti Date: Tue, 1 Aug 2017 11:24:13 +0000 (+0530) Subject: Addressed build failure because of missing #ifdef AF_UNIX guard X-Git-Tag: OpenSSL_1_1_1-pre1~819 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=326eaa941e03a8922a3789ccab0d134c63d05c92;p=oweals%2Fopenssl.git Addressed build failure because of missing #ifdef AF_UNIX guard CLA: trivial Reviewed-by: Rich Salz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/4067) --- diff --git a/apps/s_client.c b/apps/s_client.c index 45464a4ca9..5ae52b453f 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1522,11 +1522,13 @@ int s_client_main(int argc, char **argv) } } +#ifdef AF_UNIX if (socket_family == AF_UNIX && socket_type != SOCK_STREAM) { BIO_printf(bio_err, "Can't use unix sockets and datagrams together\n"); goto end; } +#endif #ifndef OPENSSL_NO_SCTP if (protocol == IPPROTO_SCTP) {