From a5a0f328af8c72b1edfc5e59be1c2de9d8b2b358 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Sun, 7 Jan 2018 15:58:52 -0500 Subject: [PATCH] Fix IPv6 define Reviewed-by: Viktor Dukhovni (Merged from https://github.com/openssl/openssl/pull/5030) --- include/internal/sockets.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/internal/sockets.h b/include/internal/sockets.h index 3758b92baf..4e914a2a65 100644 --- a/include/internal/sockets.h +++ b/include/internal/sockets.h @@ -120,7 +120,11 @@ struct servent *PASCAL getservbyname(const char *, const char *); * bad versions. */ # if !defined(OPENSSL_USE_IPV6) -# define OPENSSL_USE_IPV6 1 +# if defined(AF_INET6) +# define OPENSSL_USE_IPV6 1 +# else +# define OPENSSL_USE_IPV6 0 +# endif # endif # define get_last_socket_error() errno -- 2.25.1