diff --git a/contrib/php-ssl.c b/contrib/php-ssl.c index 944a62c60..5bdd935fa 100644 --- a/contrib/php-ssl.c +++ b/contrib/php-ssl.c @@ -18,6 +18,9 @@ +----------------------------------------------------------------------+ */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #ifdef PHP_WIN32 # include "config.w32.h" diff --git a/contrib/php-ssl.h b/contrib/php-ssl.h index 1ca56d5fa..5cf9bb4c0 100644 --- a/contrib/php-ssl.h +++ b/contrib/php-ssl.h @@ -21,6 +21,10 @@ #ifndef MONGO_CONTRIB_SSL_H #define MONGO_CONTRIB_SSL_H +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #ifdef PHP_WIN32 # include "config.w32.h" #else diff --git a/io_stream.c b/io_stream.c index 4ef78c3dc..5e4e31d2d 100644 --- a/io_stream.c +++ b/io_stream.c @@ -30,10 +30,6 @@ # include #endif -#ifdef HAVE_MONGO_OPENSSL -# include "contrib/php-ssl.h" -#endif - #include #include
#include
@@ -50,6 +46,10 @@ # include "config.h" #endif +#ifdef HAVE_MONGO_OPENSSL +# include "contrib/php-ssl.h" +#endif + #if HAVE_MONGO_SASL #include #include