diff options
-rw-r--r-- | crypto/bio/bio_addr.c | 2 | ||||
-rw-r--r-- | include/internal/sockets.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/crypto/bio/bio_addr.c b/crypto/bio/bio_addr.c index dd180387e6..8c7139691b 100644 --- a/crypto/bio/bio_addr.c +++ b/crypto/bio/bio_addr.c @@ -752,7 +752,7 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type, # pragma pointer_size 32 #endif /* Windows doesn't seem to have in_addr_t */ -#ifdef OPENSSL_SYS_WINDOWS +#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) static uint32_t he_fallback_address; static const char *he_fallback_addresses[] = { (char *)&he_fallback_address, NULL }; diff --git a/include/internal/sockets.h b/include/internal/sockets.h index 6e882fa6aa..b3e42e04d1 100644 --- a/include/internal/sockets.h +++ b/include/internal/sockets.h @@ -32,6 +32,8 @@ # include <sys/un.h> # include <tcp.h> # include <netdb.h> +# include <arpa/inet.h> +# include <netinet/tcp.h> # elif defined(_WIN32_WCE) && _WIN32_WCE<410 # define getservbyname _masked_declaration_getservbyname # endif |