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: [email protected]
          Reporter: [email protected]
  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
```

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to