summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bss_acpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio/bss_acpt.c')
-rw-r--r--crypto/bio/bss_acpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bss_acpt.c b/crypto/bio/bss_acpt.c
index 1cda967335..363f5ac173 100644
--- a/crypto/bio/bss_acpt.c
+++ b/crypto/bio/bss_acpt.c
@@ -188,7 +188,7 @@ static int acpt_state(BIO *b, BIO_ACCEPT *c)
* at least the "else" part will always be
* compiled.
*/
-#ifdef AF_INET6
+#if OPENSSL_USE_IPV6
family = AF_INET6;
} else {
#endif
@@ -497,7 +497,7 @@ static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr)
*pp = data->cache_peer_serv;
} else if (num == 4) {
switch (BIO_ADDRINFO_family(data->addr_iter)) {
-#ifdef AF_INET6
+#if OPENSSL_USE_IPV6
case AF_INET6:
ret = BIO_FAMILY_IPV6;
break;