--- a/ext/openssl/ossl.h 2014-04-07 22:05:38.000000000 -0700 +++ b/ext/openssl/ossl.h 2014-04-07 22:05:50.000000000 -0700 @@ -65,7 +65,7 @@ #include #undef X509_NAME #undef PKCS7_SIGNER_INFO -#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ST_ENGINE) +#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ST_ENGINE) && !defined(OPENSSL_NO_ENGINE) # define OSSL_ENGINE_ENABLED # include #endif