diff --git a/libraries/liblmdb/CHANGES b/libraries/liblmdb/CHANGES index 0d18ac1189..2b326350b8 100644 --- a/libraries/liblmdb/CHANGES +++ b/libraries/liblmdb/CHANGES @@ -1,6 +1,6 @@ LMDB 0.9 Change Log -LMDB 0.9.34 Engineering +LMDB 0.9.34 Release (2026/01/26) ITS#9564 - fix race condition freeing spilled pages at end of transaction ITS#10222 - Update mdb_dump(1) and mdb_load(1) man pages for append (-a) option ITS#10275 - mdb_load: add -Q option to use NOSYNC @@ -9,6 +9,8 @@ LMDB 0.9.34 Engineering ITS#10346 - fix mdb_env_copy2 with values > (2GB-16) ITS#10355 - fix mplay build on musl ITS#10396 - fix mdb_cursor_del0 with multiple DUPSORT cursors + ITS#10419 - add support for NetBSD + ITS#10420 - add support for Haiku ITS#10421 - mdb_load: check for malicious input LMDB 0.9.33 Release (2024/05/21) diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index 199382a14c..a206cf756d 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -200,7 +200,7 @@ typedef int mdb_filehandle_t; /** Library minor version */ #define MDB_VERSION_MINOR 9 /** Library patch version */ -#define MDB_VERSION_PATCH 33 +#define MDB_VERSION_PATCH 34 /** Combine args a,b,c into a single integer for easy version comparisons */ #define MDB_VERINT(a,b,c) (((a) << 24) | ((b) << 16) | (c)) @@ -210,7 +210,7 @@ typedef int mdb_filehandle_t; MDB_VERINT(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH) /** The release date of this library version */ -#define MDB_VERSION_DATE "May 21, 2024" +#define MDB_VERSION_DATE "Jan 26, 2026" /** A stringifier for the version info */ #define MDB_VERSTR(a,b,c,d) "LMDB " #a "." #b "." #c ": (" d ")" diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index a6b5375c00..1cec612013 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -135,6 +135,14 @@ typedef SSIZE_T ssize_t; # endif #elif defined(ANDROID) # define MDB_FDATASYNC fsync +#elif defined(__HAIKU__) +# define MDB_USE_POSIX_SEM 1 +# define MDB_FDATASYNC fsync +#endif + +/* NetBSD does not define union semun in sys/sem.h */ +#if defined(__NetBSD__) && !defined(_SEM_SEMUN_UNDEFINED) +# define _SEM_SEMUN_UNDEFINED 1 #endif #ifndef _WIN32