https://bugs.openldap.org/show_bug.cgi?id=10420
Issue ID: 10420 Summary: Add support for building on Haiku Product: LMDB Version: unspecified Hardware: All OS: Other Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: alizter@gmail.com Target Milestone: ---
The following patch allows for lmdb to be built on Haiku:
``` diff --git a/vendor/ocaml-lmdb/mdb.c b/vendor/ocaml-lmdb/mdb.c index 64e5ffd254..ffd8618ffa 100644 --- a/vendor/ocaml-lmdb/mdb.c +++ b/vendor/ocaml-lmdb/mdb.c @@ -174,6 +174,9 @@ # endif #elif defined(__ANDROID__) # define MDB_FDATASYNC fsync +#elif defined(__HAIKU__) +# define MDB_USE_POSIX_SEM 1 +# define MDB_FDATASYNC fsync #endif ```
https://bugs.openldap.org/show_bug.cgi?id=10420
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |0.9.34
https://bugs.openldap.org/show_bug.cgi?id=10420
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |TEST Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Howard Chu hyc@openldap.org --- Thanks, added to git 40d3741b7d40ba4c75cb91dd9987ce692d376d71
https://bugs.openldap.org/show_bug.cgi?id=10420
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED
https://bugs.openldap.org/show_bug.cgi?id=10420
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- master:
• 40d3741b by Ali Caglayan at 2026-01-13T16:43:19+00:00 ITS#10420 LMDB: add support for Haiku
master3:
• be217bf2 by Ali Caglayan at 2026-01-13T16:50:48+00:00 ITS#10420 LMDB: add support for Haiku
re0.9:
• 12ebcffb by Ali Caglayan at 2026-01-13T16:50:24+00:00 ITS#10420 LMDB: add support for Haiku