OpenBSD: don't include malloc.h

This header doesn't exist anymore on recent OpenBSD releases.
This commit is contained in:
Antoine Jacoutot 2020-08-13 17:48:34 +02:00
parent dded2ddb21
commit b4508be3c9

View File

@ -58,7 +58,7 @@ enum {
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h> // will provide posix_memalign with _POSIX_C_SOURCE as defined above
#if !(defined(__APPLE__)) && !(defined(__FreeBSD__))
#if !(defined(__APPLE__)) && !(defined(__FreeBSD__)) && !(defined(__OpenBSD__))
#include <malloc.h> // this should never be needed but there are some reports that it is needed.
#endif