Fix IPv6 define
Reviewed-by: Viktor Dukhovni <viktor@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5030)
This commit is contained in:
parent
4b9e91b02b
commit
a5a0f328af
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue