head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.09.22.16.47.11; author abs; state Exp; branches; next ; commitid s8oGxWmvLnsKBDWG; desc @@ 1.1 log @Import mongodb-5.0.34 MongoDB 5.0 was released July 13, 2021, and the latest update (5.0.34) was released June 11, 2026 The main consumer of this version of mongodb in pkgsrc is net/unifi, and this will allow users to upgrade theit mongodb4 install (mongodb only allows version+1 upgrades, so 4.4 -> 5.0 then 5.0 -> 6.0 etc @ text @$NetBSD: patch-src_mongo_util_time__support.cpp,v 1.1 2023/07/29 11:51:15 adam Exp $ Add support for NetBSD, OpenBSD, and DragonFly. --- src/mongo/util/time_support.cpp.orig 2019-12-04 23:29:59.000000000 +0000 +++ src/mongo/util/time_support.cpp @@@@ -952,7 +952,7 @@@@ private: // Find minimum timer resolution of OS Nanoseconds getMinimumTimerResolution() { Nanoseconds minTimerResolution; -#if defined(__linux__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) struct timespec tp; clock_getres(CLOCK_REALTIME, &tp); minTimerResolution = Nanoseconds{tp.tv_nsec}; @