summaryrefslogtreecommitdiff
path: root/src/mongo/util/timer.cpp
diff options
context:
space:
mode:
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