diff options
Diffstat (limited to 'src/mongo/crypto')
-rw-r--r-- | src/mongo/crypto/crypto_openssl.cpp | 8 | ||||
-rw-r--r-- | src/mongo/crypto/crypto_tom.cpp | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/mongo/crypto/crypto_openssl.cpp b/src/mongo/crypto/crypto_openssl.cpp index 576adf9d54e..3d22ad406a6 100644 --- a/src/mongo/crypto/crypto_openssl.cpp +++ b/src/mongo/crypto/crypto_openssl.cpp @@ -26,12 +26,14 @@ * it in the license file. */ -#ifndef MONGO_SSL -#error This file should only be included in SSL-enabled builds -#endif +#include "mongo/config.h" #include "mongo/platform/basic.h" +#ifndef MONGO_CONFIG_SSL +#error This file should only be included in SSL-enabled builds +#endif + #include <openssl/sha.h> #include <openssl/evp.h> #include <openssl/hmac.h> diff --git a/src/mongo/crypto/crypto_tom.cpp b/src/mongo/crypto/crypto_tom.cpp index 9051d647f2c..85cc8387bb3 100644 --- a/src/mongo/crypto/crypto_tom.cpp +++ b/src/mongo/crypto/crypto_tom.cpp @@ -26,12 +26,14 @@ * it in the license file. */ -#ifdef MONGO_SSL -#error This file should not be included if compiling with SSL support -#endif +#include "mongo/config.h" #include "mongo/platform/basic.h" +#ifdef MONGO_CONFIG_SSL +#error This file should not be included if compiling with SSL support +#endif + #include "mongo/crypto/tom/tomcrypt.h" namespace mongo { |