diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2015-03-26 18:00:00 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2015-03-26 18:30:00 -0400 |
commit | ef7f17be8085488ba965286fb97927a7ce3600e7 (patch) | |
tree | 48caef5aaf331f1035c02489a78feab2ccaef789 /src/mongo/crypto | |
parent | 66c14dd70dd4427fef0d424b9675570614e13ca7 (diff) | |
download | mongo-ef7f17be8085488ba965286fb97927a7ce3600e7.tar.gz |
SERVER-9563 Add support for config.h header
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 { |