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_third__party_s2_base_port.h,v 1.1 2023/07/29 11:51:15 adam Exp $ * Add NetBSD support. --- src/third_party/s2/base/port.h.orig 2016-01-05 18:31:44.000000000 +0000 +++ src/third_party/s2/base/port.h @@@@ -102,7 +102,7 @@@@ typedef uint16_t u_int16_t; #endif -#if defined __sun || defined __FreeBSD__ || defined __OpenBSD__ +#if defined __sun || defined __FreeBSD__ || defined __OpenBSD__ || defined __DragonFly__ || defined __NetBSD__ #ifdef _LITTLE_ENDIAN #define IS_LITTLE_ENDIAN #elif defined _BIG_ENDIAN @@@@ -139,6 +139,11 @@@@ typedef uint16_t u_int16_t; #define bswap_16(x) swap16(x) #define bswap_32(x) swap32(x) #define bswap_64(x) swap64(x) +#elif defined __NetBSD__ +#include +#define bswap_16(x) bswap16(x) +#define bswap_32(x) bswap32(x) +#define bswap_64(x) bswap64(x) #else #include #endif @