1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00

net/openldap24-server: back_mdb: use robust mutexes.

PR:		197514
This commit is contained in:
Xin LI 2019-12-07 23:31:47 +00:00
parent e162817f46
commit dc66ec8d4c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519256
2 changed files with 15 additions and 1 deletions

View File

@ -65,7 +65,7 @@ BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
.endif
PORTREVISION_CLIENT= 0
PORTREVISION_SERVER= 2
PORTREVISION_SERVER= 3
OPENLDAP_SHLIB_MAJOR= 2
OPENLDAP_SHLIB_MINOR= 10.11
OPENLDAP_MAJOR= ${DISTVERSION:R}

View File

@ -0,0 +1,14 @@
--- libraries/liblmdb/mdb.c.orig 2019-07-23 14:46:22 UTC
+++ libraries/liblmdb/mdb.c
@@ -124,7 +124,10 @@ typedef SSIZE_T ssize_t;
#include <resolv.h> /* defines BYTE_ORDER on HPUX and Solaris */
#endif
-#if defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
+#if defined(__FreeBSD__)
+# define MDB_USE_POSIX_MUTEX 1
+# define MDB_USE_ROBUST 1
+#elif defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
# define MDB_USE_POSIX_SEM 1
# define MDB_FDATASYNC fsync
#elif defined(ANDROID)