mdbx: portability - don't include malloc.h on BSD.

Change-Id: I67f580c073bfe52fbd2e4ff599354e6d0f597e95
This commit is contained in:
Leonid Yuriev 2019-07-13 20:07:56 +03:00
parent 097b274aa4
commit cf7160bda2

View File

@ -50,10 +50,14 @@
#include <assert.h> #include <assert.h>
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
#include <malloc.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
defined(__BSD__) || defined(__NETBSD__) || defined(__bsdi__) || \
defined(__DragonFly__))
#include <malloc.h>
#endif /* xBSD */
#ifndef _POSIX_C_SOURCE #ifndef _POSIX_C_SOURCE
#ifdef _POSIX_SOURCE #ifdef _POSIX_SOURCE