summaryrefslogtreecommitdiff
path: root/src/mongo/util/timer.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-03-26 18:00:00 -0400
committerJonathan Reams <jbreams@mongodb.com>2015-03-26 18:30:00 -0400
commitef7f17be8085488ba965286fb97927a7ce3600e7 (patch)
tree48caef5aaf331f1035c02489a78feab2ccaef789 /src/mongo/util/timer.cpp
parent66c14dd70dd4427fef0d424b9675570614e13ca7 (diff)
downloadmongo-ef7f17be8085488ba965286fb97927a7ce3600e7.tar.gz
SERVER-9563 Add support for config.h header
Diffstat (limited to 'src/mongo/util/timer.cpp')
-rw-r--r--src/mongo/util/timer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/util/timer.cpp b/src/mongo/util/timer.cpp
index fcf4ddc76c9..5936f00c1f6 100644
--- a/src/mongo/util/timer.cpp
+++ b/src/mongo/util/timer.cpp
@@ -27,13 +27,15 @@
* then also delete it in the license file.
*/
+#include "mongo/config.h"
+
#include "mongo/platform/basic.h"
#include "mongo/util/timer.h"
#include <ctime>
#include <limits>
-#if defined(MONGO_HAVE_HEADER_UNISTD_H)
+#if defined(MONGO_CONFIG_HAVE_HEADER_UNISTD_H)
#include <unistd.h>
#endif
@@ -86,7 +88,7 @@ namespace mongo {
_timerNow = &timerNowWindows;
}
-#elif defined(MONGO_HAVE_POSIX_MONOTONIC_CLOCK)
+#elif defined(MONGO_CONFIG_HAVE_POSIX_MONOTONIC_CLOCK)
/**
* Implementation for timer on systems that support the