diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-03 02:50:31 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-03 02:50:31 +0000 |
commit | f0577b7563f72ae1effd82f12246fc8f91fece7c (patch) | |
tree | 8433f6f1c1cad447e4430cbcfeda75c76eb46c68 /ext/openssl/ossl.h | |
parent | e9ebaaa15d45998b088ef747f0c2ff63c4b0f7b6 (diff) |
* ext/openssl/ossl.h: avoid to build failure of Windows environment.
* ext/openssl/ossl_ssl_session.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl.h')
-rw-r--r-- | ext/openssl/ossl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index fd7c8401f3..a53f0f413f 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -64,7 +64,9 @@ extern "C" { #include <openssl/rand.h> #include <openssl/conf.h> #include <openssl/conf_api.h> -#include <openssl/crypto.h> +#if !defined(_WIN32) +# include <openssl/crypto.h> +#endif #undef X509_NAME #undef PKCS7_SIGNER_INFO #if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_EVP_CIPHER_CTX_ENGINE) |