src/bio.c: in wolfSSL_BIO_ADDR_size(), add missing gate on HAVE_SYS_UN_H for AF_UNIX.

This commit is contained in:
Daniel Pouzzner 2024-06-24 11:02:59 -05:00
parent 51c49b678e
commit 1159fc333f

View File

@ -992,7 +992,7 @@ socklen_t wolfSSL_BIO_ADDR_size(const WOLFSSL_BIO_ADDR *addr) {
case AF_INET6:
return sizeof(addr->sa_in6);
#endif
#ifndef WOLFSSL_NO_BIO_ADDR_UN
#if defined(HAVE_SYS_UN_H) && !defined(WOLFSSL_NO_SOCKADDR_UN)
case AF_UNIX:
return sizeof(addr->sa_un);
#endif