Addressed build failure because of missing #ifdef AF_UNIX guard
authorBalaji Marisetti <bmarisetti@caviumnetworks.com>
Tue, 1 Aug 2017 11:24:13 +0000 (16:54 +0530)
committerMatt Caswell <matt@openssl.org>
Fri, 18 Aug 2017 13:44:44 +0000 (14:44 +0100)
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)

(cherry picked from commit 326eaa941e03a8922a3789ccab0d134c63d05c92)

apps/s_client.c

index ce1a408dcc833801cf1be582647a4c19ae169c12..2f1b228a1413ca5b9db402b06426a5183bf460e2 100644 (file)
@@ -1370,11 +1370,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
 
     if (split_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
         BIO_printf(bio_err, "Bad split send fragment size\n");