--- a/ext/openssl/ossl.h 2014-04-07 22:06:59.000000000 -0700 +++ b/ext/openssl/ossl.h 2014-04-07 22:07:13.000000000 -0700 @@ -66,7 +66,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