Commit b2426af3 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount Committed by Quanah Gibson-Mount
Browse files

ITS#8612 Fix Solaris builds with liblmdb

This patch fixes liblmdb builds on Solaris and derivatives by defining
_POSIX_PTHREAD_SEMANTICS
parent 3d8fc321
...@@ -113,6 +113,10 @@ typedef SSIZE_T ssize_t; ...@@ -113,6 +113,10 @@ typedef SSIZE_T ssize_t;
/* Most platforms have posix_memalign, older may only have memalign */ /* Most platforms have posix_memalign, older may only have memalign */
#define HAVE_MEMALIGN 1 #define HAVE_MEMALIGN 1
#include <malloc.h> #include <malloc.h>
/* On Solaris, we need the POSIX sigwait function */
#if defined (__sun)
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
#endif #endif
#if !(defined(BYTE_ORDER) || defined(__BYTE_ORDER)) #if !(defined(BYTE_ORDER) || defined(__BYTE_ORDER))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment