diff options
author | Eric Milkie <milkie@10gen.com> | 2012-11-16 14:49:12 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-11-16 14:49:12 -0500 |
commit | b65f2288159bd5a61726e9f0bf6fe0c2735cfbe4 (patch) | |
tree | 3aa62b4c3077d6d9c4d19559793b9ba2cc36708e /src/mongo/platform/random.cpp | |
parent | 79f71926822200c13ae9a69a7481b6f594a0db42 (diff) | |
download | mongo-b65f2288159bd5a61726e9f0bf6fe0c2735cfbe4.tar.gz |
fix Windows compile for rand_s
Diffstat (limited to 'src/mongo/platform/random.cpp')
-rw-r--r-- | src/mongo/platform/random.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/platform/random.cpp b/src/mongo/platform/random.cpp index 2281fd31653..ef4a0f741fc 100644 --- a/src/mongo/platform/random.cpp +++ b/src/mongo/platform/random.cpp @@ -22,6 +22,7 @@ #ifndef _WIN32 #include <errno.h> +#define _CRT_RAND_S #endif #include <cstdlib> |