summaryrefslogtreecommitdiff
path: root/src/mongo/platform/random.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-11-16 14:49:12 -0500
committerEric Milkie <milkie@10gen.com>2012-11-16 14:49:12 -0500
commitb65f2288159bd5a61726e9f0bf6fe0c2735cfbe4 (patch)
tree3aa62b4c3077d6d9c4d19559793b9ba2cc36708e /src/mongo/platform/random.cpp
parent79f71926822200c13ae9a69a7481b6f594a0db42 (diff)
downloadmongo-b65f2288159bd5a61726e9f0bf6fe0c2735cfbe4.tar.gz
fix Windows compile for rand_s
Diffstat (limited to 'src/mongo/platform/random.cpp')
-rw-r--r--src/mongo/platform/random.cpp1
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>