summaryrefslogtreecommitdiff
path: root/src/mongo/util/stacktrace.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-05-16 14:51:48 -0400
committerAndrew Morrow <acm@mongodb.com>2014-05-17 15:46:28 -0400
commit3c202ac893db05e2486efd4a384c6bb49f01831f (patch)
treef7539949456bb9ad5bef9b5149ea366b639adee5 /src/mongo/util/stacktrace.h
parentab600c4056f13ee7dc49899bd76be4a8898b3360 (diff)
downloadmongo-3c202ac893db05e2486efd4a384c6bb49f01831f.tar.gz
SERVER-6018 SERVER-13913 Use std::atomic to implement AtomicWord in C++11 mode
Diffstat (limited to 'src/mongo/util/stacktrace.h')
-rw-r--r--src/mongo/util/stacktrace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/util/stacktrace.h b/src/mongo/util/stacktrace.h
index bdc56d7dc60..8e10932a6ab 100644
--- a/src/mongo/util/stacktrace.h
+++ b/src/mongo/util/stacktrace.h
@@ -35,6 +35,12 @@
#include "mongo/util/log.h"
+#if defined(_WIN32)
+// We need to pick up a decl for CONTEXT. Forward declaring would be preferable, but it is
+// unclear that we can do so.
+#include "mongo/platform/windows_basic.h"
+#endif
+
namespace mongo {
// Print stack trace information to "os", default to the log stream.