diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-03-11 16:23:24 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-03-11 18:57:20 -0400 |
commit | 17a7f0eedd286a19a5027c02efc358b39ccc8d84 (patch) | |
tree | 5f93c28965f1e19867bb36c721d09609dd97cb1b /src/mongo/platform/random.cpp | |
parent | b4f647796a0c37fbb95d71aa9ee9b63fcbfcb782 (diff) | |
download | mongo-17a7f0eedd286a19a5027c02efc358b39ccc8d84.tar.gz |
SERVER-17552 Use correct OS detection macros, rather than our own
Diffstat (limited to 'src/mongo/platform/random.cpp')
-rw-r--r-- | src/mongo/platform/random.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/platform/random.cpp b/src/mongo/platform/random.cpp index e00fab107ca..dcbd6f66ffc 100644 --- a/src/mongo/platform/random.cpp +++ b/src/mongo/platform/random.cpp @@ -117,7 +117,7 @@ namespace mongo { return new WinSecureRandom(); } -#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__freebsd__) +#elif defined(__linux__) || defined(__sun) || defined(__APPLE__) || defined(__FreeBSD__) class InputStreamSecureRandom : public SecureRandom { public: @@ -150,7 +150,7 @@ namespace mongo { return new InputStreamSecureRandom( "/dev/urandom" ); } -#elif defined(__openbsd__) +#elif defined(__OpenBSD__) class Arc4SecureRandom : public SecureRandom { public: |