From: Quanah Gibson-Mount Date: Wed, 7 Jun 2017 20:42:51 +0000 (-0700) Subject: ITS#8612 Fix Solaris builds with liblmdb X-Git-Tag: LMDB_0.9.22~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2426af3d1676ac51c9e796f45982c88a28e65ea;p=openldap ITS#8612 Fix Solaris builds with liblmdb This patch fixes liblmdb builds on Solaris and derivatives by defining _POSIX_PTHREAD_SEMANTICS --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 90ac99f2d8..87ff230833 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -113,6 +113,10 @@ typedef SSIZE_T ssize_t; /* Most platforms have posix_memalign, older may only have memalign */ #define HAVE_MEMALIGN 1 #include +/* 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))