]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8612 Fix Solaris builds with liblmdb
authorQuanah Gibson-Mount <quanah@symas.com>
Wed, 7 Jun 2017 20:42:51 +0000 (13:42 -0700)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Oct 2020 12:10:14 +0000 (13:10 +0100)
This patch fixes liblmdb builds on Solaris and derivatives by defining
_POSIX_PTHREAD_SEMANTICS

libraries/liblmdb/mdb.c

index 79e96e2bbd7bc18d7b76a1a5e65853762772abfb..cecd1da6dfbf056b9f15bfb1d506f5d327069636 100644 (file)
@@ -142,6 +142,10 @@ typedef SSIZE_T    ssize_t;
 /* Most platforms have posix_memalign, older may only have memalign */
 #define HAVE_MEMALIGN  1
 #include <malloc.h>
+/* On Solaris, we need the POSIX sigwait function */
+#if defined (__sun)
+# define _POSIX_PTHREAD_SEMANTICS      1
+#endif
 #endif
 
 #if !(defined(BYTE_ORDER) || defined(__BYTE_ORDER))