]> 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@openldap.org>
Fri, 9 Feb 2018 18:45:37 +0000 (18:45 +0000)
This patch fixes liblmdb builds on Solaris and derivatives by defining
_POSIX_PTHREAD_SEMANTICS

libraries/liblmdb/mdb.c

index 90ac99f2d849c9cd63bdf4152e977065dfb1374c..87ff230833750a52b548da3f566ba97ce4bd1f0b 100644 (file)
@@ -113,6 +113,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))