diff options
Diffstat (limited to 'databases/mongodb36/files')
| -rw-r--r-- | databases/mongodb36/files/patch-src_mongo_util_time__support.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/mongodb36/files/patch-src_mongo_util_time__support.cpp b/databases/mongodb36/files/patch-src_mongo_util_time__support.cpp new file mode 100644 index 000000000000..503d5074a6e0 --- /dev/null +++ b/databases/mongodb36/files/patch-src_mongo_util_time__support.cpp @@ -0,0 +1,11 @@ +--- src/mongo/util/time_support.cpp.orig 2018-04-19 11:21:07 UTC ++++ src/mongo/util/time_support.cpp +@@ -933,7 +933,7 @@ private: + // Find minimum timer resolution of OS + Nanoseconds getMinimumTimerResolution() { + Nanoseconds minTimerResolution; +-#if defined(__linux__) ++#if defined(__linux__) || defined(__FreeBSD__) + struct timespec tp; + clock_getres(CLOCK_REALTIME, &tp); + minTimerResolution = Nanoseconds{tp.tv_nsec}; |
