Fix IPv6 define

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5030)
This commit is contained in:
Rich Salz 2018-01-07 15:58:52 -05:00
parent 4b9e91b02b
commit a5a0f328af

View file

@ -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