]> git.sur5r.net Git - openldap/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)
committerQuanah Gibson-Mount <quanah@ub16.quanah.org>
Fri, 6 Oct 2017 18:35:37 +0000 (11:35 -0700)
This patch fixes liblmdb builds on Solaris and derivatives by defining
_POSIX_PTHREAD_SEMANTICS

libraries/liblmdb/mdb.c

index 50086e291ca4467b20f6a4ae6f973db960171eac..1bf81ed4c87901991b7cac885b0d8cbc4dd23436 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))